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.
How do you create a surface from connected edges--fill() not working?
thomas_lampertius037
Member Posts: 6 EDU
I am trying to create a surface from an array of edges bounded together forming a region. I am not sure if I am using the fill() function correctly, each time I try to use it I get this error: Precondition failed (surfaceOperationTypePredicate(definition)).
Code:
0
Best Answer
-
MichaelPascoe Member Posts: 2,028 PRO
Hi @thomas_lampertius037,
Depending on the type of edge conditions you want, you will need to place the query in the appropriate location: either G0, G1, or G2.
Here is one way you can do this:opFillSurface(context, id + "opFillSurface1", { "edgesG0" : qNothing(), "edgesG1" : NestedPockets2Fix, "edgesG2" : qNothing(), "guideVertices" : qNothing() });
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴0
Answers
Hi @thomas_lampertius037,
Depending on the type of edge conditions you want, you will need to place the query in the appropriate location: either G0, G1, or G2.
Here is one way you can do this:
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
@mahir that's legit. I didn't know that. This will save me some if statements.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴