Fill pattern: Pattern instances self-intersect
vladimir_shapranov
Member Posts: 9 ✭
I'm trying to use the "fill pattern" script and getting a confusing error:"Pattern instances self-intersect. Try a larger spacing."
From the code it looks like the error comes from a "catch the real error and rethrow some assumption instead" block, which is kinda bad.
```
try
{
applyPattern(context, id, patternDefinition, remainingTransform);
}
catch
{
throw regenError("Pattern instances self-intersect. Try a larger spacing.", ["distance"]);
}
{
applyPattern(context, id, patternDefinition, remainingTransform);
}
catch
{
throw regenError("Pattern instances self-intersect. Try a larger spacing.", ["distance"]);
}
```
The actual error visible in the log is "PATTERN_FACE_FAILED", which is also not very helpful though.
How to fix this?
.0
Comments
-
Are you using the latest version? https://cad.onshape.com/documents/57361ad4e4b00e5012c3857c
If so, share your doc url please.Senior Director, Technical Services, EMEA0 -
NeilCooke said:Are you using the latest version? https://cad.onshape.com/documents/57361ad4e4b00e5012c3857c
If so, share your doc url please.
Oh, looks like I used some copypasted garbage version of the script (with different document id, but same name). Replaced with the one you mentioned and all works fine, thanks!
0

