Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Fill pattern: Pattern instances self-intersect
vladimir_shapranov
Member Posts: 7 ✭
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
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!