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.
Boolean- Intersect operation with "Select all bodies" option
carlos_rios044
Member Posts: 4 PRO
Hello,
We are trying to find a way to automatically select all the bodies in a part studio for an intersect boolean operation. We are far from getting a satisfactory result but learning FeatureScript has been fun, does anybody have an idea or recommendation for this task?
We are trying to find a way to automatically select all the bodies in a part studio for an intersect boolean operation. We are far from getting a satisfactory result but learning FeatureScript has been fun, does anybody have an idea or recommendation for this task?
Tagged:
0
Comments
qBodyType(qEverything(EntityType.BODY), BodyType.SOLID)
Thanks!
Are you trying to find the material where all the bodies intersect? Or find material where any bodies intersect? Our boolean intersection does the former, but I've written a custom feature that does the latter:
https://cad.onshape.com/documents/4ef9d7bf5c04de6c159e6fb0/w/50103cbdb65f20d04d6f68f1/e/3615f436f199409fef3d5351
Feel free to use the custom feature, or use it as inspiration.
Hello Jake,
I'm familiar with your FS, used it a few times, thanks!
We are trying to use the intersect option, but instead of querying for tools, we need to have some sort of "select all" option that uses all the parts/bodies available in the part studio.
Thanks again!!!