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.
A question about CapType in Featurescript
There are three types about CapType: START, END, EITHER
My question is: suppose a square sketch is extruded to form a cube, then the cube's edges have different CapType types. Is there a way in FeatureScript to trace the edges of a cube back to their originating edges or points in the sketch?
For example: CapType: START/END edges should be derived from a specific edge of the sketch after extrusion, while CapType: EITHER edges should be derived from a specific point of the sketch after extrusion.
Thanks.
Best Answer
-
jnewth Member, OS Professional Posts: 23 PRO
qDependency
might be what you're looking for:Sorry for the poor quality screenshot, but I've extruded a square sketch and then wrote a feature where you can pick an edge and it highlights the qDependency result in magenta (see the tiny dot?).
Copy the doc and play around with it.
1
Answers
qDependency
might be what you're looking for:https://cad.onshape.com/documents/385d91ff23e4d5db45df515b/v/2076082aae7467dfea85436d/e/1a21e3f9aac2be866aa6f490
Sorry for the poor quality screenshot, but I've extruded a square sketch and then wrote a feature where you can pick an edge and it highlights the qDependency result in magenta (see the tiny dot?).
Copy the doc and play around with it.
Hi @jnewth ,
Thank you for providing the code and helping me solve the problem. Your help is truly appreciated!