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 I query all edges of a face?

I would like to create a query variable to select all edges that form a particular face of a body. I can select the face manually, but not the edges themselves since they change according to parameters. How do I achieve this? Thanks.
Tagged:
0
Answers
In FeatureScript you would use a qAdjacent, but it looks like that is not an option in the query variable feature.
But with the magic of custom features, you can also make your own query variable features - here is a super basic one that does only this.
https://cad.onshape.com/documents/2d428138fcd3196fe9ad3702/w/669b90d0629267a5caf3d54b/e/515f117273637373707c6a32
Custom FeatureScript and Onshape Integrated Applications
Sounds like an opportunity for an improvement request to add qAdjacent to regular query variables.
Simon Gatrall | Staff Mechanical Engineer | Carbon, Inc.
Along with the all the other unsupported queries.
Theres a lot of really useful queries that non-featurescripters don't know about.
Like qLargest, qWithinRadius, qCoincidesWithPlane, qInFrontofPlane, I could go on…
Custom FeatureScript and Onshape Integrated Applications
Y'know I was just saying the other week how I wished someone would pick up the torch of the Query Explorer and implement all the modern queries. Now I think Query Explorer's features should be ported to Query Variable in addition to adding support for all the modern queries.
"loop/chain connected" should do what you're after @forsaken_candy
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com