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.
Using Featurescript...easiest way to add fillets to specific edges of an opRevolve
leti_ryder
Member Posts: 7 EDU
Hi guys!
I am learning Featurescript, and using inputted data to make a bottle like shape. In the script I use opRevolve to make a new body. I want to add a fillet 2/3 edges on this body. How do I select them programmatically for the fillet command?
Thanks!
I am learning Featurescript, and using inputted data to make a bottle like shape. In the script I use opRevolve to make a new body. I want to add a fillet 2/3 edges on this body. How do I select them programmatically for the fillet command?
Thanks!
0
Best Answer
-
MichaelPascoe Member Posts: 2,028 PRO
After the revolve, you can find the revolved entities like this:var revolvedEdges = qCreatedBy(id + "revolve1", EntityType.EDGE);
Then you could do something like this to remove the edge closest to the origin:var closestToOrigin = qClosestTo(revolvedEdges, WORLD_ORIGIN); var edgesToFillet = qSubtraction([revolvedEdges, closestToOrigin]);
In the future, if you ever need to add queries together, you can use qUnion([query1, query2, etc... ]);
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴1
Answers
After the revolve, you can find the revolved entities like this:
Then you could do something like this to remove the edge closest to the origin:
In the future, if you ever need to add queries together, you can use qUnion([query1, query2, etc... ]);
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴