Arbeitstier
Computer
- Jun 7, 2005
- 4
Hi,
I'm looking for the position of a part in an assemblies structure to create a BOM by my own.
As I understand the standard BOM functionality in SolidWorks right, the BOM show me in standard configuration the position of the part in the assembly structure tree.
Now I work with 'GetChildren' to recieve the parts (or subassemblies) within an open assembly. (that works fine)
But the returned array are not sorted like the tree.
It seems to be, that the array contains the parts in the way I've inserted it in the assembly.
E.G.
TestPart1
TestPart2
TestAssembly1
The Stucture the tree (and in standard BOM) is :
TestPart2
TestAssembly1
TestPart1
Have anyone an idea how I can get the children in the same way as displayed in the tree ?
Regards,
Christian
I'm looking for the position of a part in an assemblies structure to create a BOM by my own.
As I understand the standard BOM functionality in SolidWorks right, the BOM show me in standard configuration the position of the part in the assembly structure tree.
Now I work with 'GetChildren' to recieve the parts (or subassemblies) within an open assembly. (that works fine)
But the returned array are not sorted like the tree.
It seems to be, that the array contains the parts in the way I've inserted it in the assembly.
E.G.
TestPart1
TestPart2
TestAssembly1
The Stucture the tree (and in standard BOM) is :
TestPart2
TestAssembly1
TestPart1
Have anyone an idea how I can get the children in the same way as displayed in the tree ?
Regards,
Christian