Oh I have just unchecked the utility reference and and run again the macro but still the same problem ! If it's working for you maybe there is an option in the settings that causes this. I have not identified which one. I have noticed that the macro works well for one drawing in particular but...
Yes I did tried with .ForceRebuild3 True but it is still not working.
I also tried with RepalceReferencedDocument but the problem is that I cannot access the old document path (just the name) as it requieres both old and new document path
Hello,
I’m attempting to replace the view model of a drawing for a part file that has been renamed. I’ve been following a similar approach outlined in the API documentation, but I’m unsure if the issue lies with my instances variable. The ReplaceModelView function isn't working as expected, and...
I finally found the solution. I still don't know how and why because when I test the same code on another computer it does work without me adding these lines of codes.
So from the API Help for Name2 property, it is said :
If you are setting the name of a component:
Before executing a name...
Hello, this is my first time encountering this. I have double checked and all my variables just work fine and have the right values.
I did recently an update of SolidWorks and from what I read online I have to update references (already did).
Does anyone able to run this code on their computer...