Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by koubaleite

  1. K

    ReplaceViewModel not working

    Good idea, plan also to tried it on another computer
  2. K

    ReplaceViewModel not working

    Thanks, I just checked and configuration names for some parts are differents
  3. K

    ReplaceViewModel not working

    I would love to thanks but I am on a work computer so it's not allowed unfortunately.
  4. K

    ReplaceViewModel not working

    Hi, the option "Update component names when documents are replaced" was already selected.
  5. K

    ReplaceViewModel not working

    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...
  6. K

    ReplaceViewModel not working

    I forgot to precise that the documents are all parts and drawing no assemblies
  7. K

    ReplaceViewModel not working

    I found a trick to get the old document path, now the document is referenced correctly but drawings views are still empty
  8. K

    ReplaceViewModel not working

    I verified but seems like it was not the issue. I am pretty sure the naming is correct
  9. K

    ReplaceViewModel not working

    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
  10. K

    ReplaceViewModel not working

    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...
  11. K

    Macro not running

    That is solved thanks ! It was due to PDM
  12. K

    Select parts of subassemblies

    Oh ok I see. Yes I am using a PDM.
  13. K

    Select parts of subassemblies

    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...
  14. K

    Select parts of subassemblies

    Thanks for the suggestion !
  15. K

    Macro not running

    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...

Part and Inventory Search