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.
Use opBoolean() on all parts that contain a point
Lee_Hesketh
Member, Developers Posts: 148 ✭✭✭
Hi how would I use opBoolean() to remove material from all parts that are touching a part? I have currently used qContainsPoint, with qEverything() as the subquery, then using qSubtraction() to filter out the part itself. This works in finding the correct parts, but when I use the variable I have assigned to these parts in the "targets" section of the opBoolean(), an error is thrown: BOLEAN_INPUTS_NOT_SOLID. How could I fix this?
Also just noticed, the error is spelt wrong, shouldn't it be BOOLEAN_INPUT_NOT_SOLID?
Also just noticed, the error is spelt wrong, shouldn't it be BOOLEAN_INPUT_NOT_SOLID?
There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
Tagged:
1
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565Probably you have some non-3D bodies in your query (sketch bodies, constructions planes, any bodies which are not BodyType.SOLID).
So, the first thing I'd try is to make sure you have EntityType.BODY in your qEverything(), and add a qBodyType(query, BodyType.SOLID) around your whole query.6
Answers
So, the first thing I'd try is to make sure you have EntityType.BODY in your qEverything(), and add a qBodyType(query, BodyType.SOLID) around your whole query.