Hi everyone,
I'm searching for a solution to export STL files from my assembly.
I try to be clear with my question:
We suppose to have an assembly so made:
Assembly (level 0)
- Subassembly_1 (Level 1)
-Component_1 (Level 2)
-Component_2 (Level 2)
- Subassembly_2 (Level 1)
-Component_3 (Level 2)
-Component_4 (Level 2)
-Subassembly_3 (Level 2)
-Component 5 (Level 3)
-Component 6 (Level 3)
and so on....
If assembly is set as current workpart, I can't see bodies contained in all subcomponents.
Currently, I go through the hierarchy by setting each time the current component as workpart. In this way, I export all bodies as one stl files by means of the method that I found in the other topic. The entire procedure is too time-consuming in the case of thousands of parts.
My question is the following:
Is there a method to get bodies of a component without setting it as the current workpart?
Thank you very much!
re: assembly bodies
If you want to export all the bodies from the assembly, I suggest exporting the occurrence bodies. The code in the following thread shows how to get the occurrence bodies from the assembly:
http://nxjournaling.com/content/select-all-bodies-current-displayed-asse...