Hi all
I resolve to come and ask the question here because I can't find the answer anywhere... I created a macro to automatically save the parts of my assembly in .slddrw. So far it works, the problem is that this assembly is composed of several times the same part in a different configuration! So instead of creating different plans (which happens when I do it manually), I just save plans in the same room configuration.
Ex: my assembly contains:
- Exhibit 1
- Exhibit 2 (conf 1)
- Exhibit 2 (conf 2)
And I get the same plan for the 2 different configurations.
My code is (very simplified version):
Set Part = swApp.NewDocument(Modelsheet, 2, 0.2794, 0.4318) 'ouvre une MEP selon le model de fond
Set myView = Part.CreateDrawViewFromModelView3(sPathName, "*Dessus", PosX, PosY, 0) 'cree la vue de dessus a cette position
Part.ClearSelection2 True
Part.SaveAs (savepath)
swApp.CloseDoc savepath
Thank you to all those who will be able to help me