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
-
use
qBodyType(qEverything(EntityType.BODY), BodyType.SOLID)
0 -
Ok, but... Where am I supposed to insert this particular piece of code?lana said:useqBodyType(qEverything(EntityType.BODY), BodyType.SOLID)
Thanks!
0 -
@carlos_rios044
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.Jake Rosenfeld - Modeling Team0 -
@Jake_Rosenfeld
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.1 -
1

