dfgsdfgfd
Mechanical
- Sep 30, 2015
- 37
Hi everyone,
Using Python, I'm trying to select the faces of all instances with getByBoundingBox:
This is very tedious for many instances. Unfortunately, rootAssembly doesn't have the attribute faces, so I can't use
Is there an alternative way to select all faces with a bounding box?
Thanks very much!
Using Python, I'm trying to select the faces of all instances with getByBoundingBox:
Python:
faces = a.rootAssembly.instances['Part-1'].faces.getByBoundingBox(...)+ a.rootAssembly.instances['Part-2'].faces.getByBoundingBox(...)+ a.rootAssembly.instances['Part-3'].faces.getByBoundingBox(...)+ ...
This is very tedious for many instances. Unfortunately, rootAssembly doesn't have the attribute faces, so I can't use
Python:
faces = a.rootAssembly.faces.getByBoundingBox(...)
Is there an alternative way to select all faces with a bounding box?
Thanks very much!