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.


Invert FeatureScript Query

ken_kaiserken_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 query1, but do not match query2.


Sign In or Register to comment.