AnsweredAssumed Answered

Macro to open all parts (child) from an assembly

Question asked by Marc-Xavier Bilodeau on Dec 22, 2015
Latest reply on Dec 22, 2015 by Amen Allah Jlili



I'm trying to make some kind of  assembly analysis macro that go throught all child of an assembly.

The fact is that I work mostly with step file, so they are all empty when opened.


I would like the macro to (once at the time):

1- Open a part

2- Open a Userform to help the user analyse the part and fill some custom propreties

3- Save

4- Close

5- Open next part (and repeat)


The help I need right now is just how to go throught and open every child from an assembly.


Here's two references I found, but it's either because I can't search properly, either nobody asked it, it's all I got:

API Opening each part file in an assembly. - DASSAULT: SOLIDWORKS 3D Design - Eng-Tips

API, Assembly traversal, grab children attribute - DASSAULT: SOLIDWORKS 3D Design - Eng-Tips


If anyone can guide me a bit, that would be greatly appreciated.