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.
Invert FeatureScript Query
ken_kaiser
Member Posts: 6 ✭
There are a few times where it is easier to select a part by excluding other parts.
Is there a way to invert the selection, I tried !query, but it isn't boolean. I've tried to find a list of subqueries, I can't find them in one place, but I went through the Standard Library.
Keywords I've tried: opposite, inverse, logical operator
*Update* Found it, I hope this saves some else not being able to find it. CAD terms vs programmer terms.
qSubtraction(query1, query2);
A query for entities which match
Is there a way to invert the selection, I tried !query, but it isn't boolean. I've tried to find a list of subqueries, I can't find them in one place, but I went through the Standard Library.
Keywords I've tried: opposite, inverse, logical operator
*Update* Found it, I hope this saves some else not being able to find it. CAD terms vs programmer terms.
qSubtraction(query1, query2);
A query for entities which match
query1
, but do not match query2
.
Tagged:
1
Comments
https://cad.onshape.com/documents/eed46660449d7b1cbd0f8d90/w/4a47dee3353d14873bfd20fc/e/4ef56c6dc0360804640219f0?renderMode=0&uiState=635e2edbb18bb94cb463baca
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común