Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

new Query Variable FeatureScript

jelte_steur_infojelte_steur_info Member Posts: 547 PRO

https://cad.onshape.com/documents/e5452ecbe85803ee33e94fc0/w/83e7c35b9db1feac39e2d7a2/e/dced449a0cf7904d29eaa5fe

I couldn't figure out how to create a query variable (or set thereof) to select all the relevant parting edges for a draft feature, so I created a Custom feature for it.

feel free to use it (link above).
If any body knows how this could have been done with e.g @Derek_Van_Allen_BD's queryVariable(+) feature, let me know. That'll help me get more out of query variables in the future.

@Derek_Van_Allen_BD : I couldn't think of a way to implement this well in the regular UI of a query Variable, so I just made a short simple new one… perhaps you can?

internally, it does a qTangentFaces for each seedFace, then a qAdjacent(edge, edge) for each face found. then it looks for duplicate entries and removes those from the query to only get the outer edges….
then optionally filters with edges or edges of faces (also found with qAdjacent(edge,edge).

best,

Jelte

image.png
Sign In or Register to comment.