When I cahnge config in the room and activate the macro it doesn't work anymore.
I just realized that if I don't select my part on solidworks before launching the macro it doesn't work!?
When I cahnge config in the room and activate the macro it doesn't work anymore.
I just realized that if I don't select my part on solidworks before launching the macro it doesn't work!?
In the end, if the part is selected, it doesn't matter what you write in the line (at the level of the file names)
Status = modelDocExt.SelectByID2("CleanSeal COMPLETE-1@Assemblage1/Cxxx-x-2@CleanSeal COMPLETE", "COMPONENT", 0, 0, 0, True, 0, Nothing, 0)
The macros still work.
That's why I told you that it was DIY: the macro puts in your assembly the configuration active in the room alone. And I don't know why.
As for selecting the part, it's not normal, this part works. Check that there are no extra spaces or that the name is correct when you call the part "CleanSeal WELDED-1@CleanSeal COMPLETE/Cxxx-x-1@CleanSeal WELDED"
Indeed there was a problem in the writing of my line.
Now it works without the need to select the component.