3 Replies Latest reply on Aug 25, 2017 5:53 PM by Bppereira Bppereira

    Main assembly not included in Pack and Go macro

    Bppereira Bppereira

      Hi all,

      I'm working in a macro for Pack and Go. It's supposed to rename all parts and subassemblies from a main assembly with a specific name standard ( not preffix and suffix, but a sequence).

      As I'm not a VBA expert, I got many different codes from internet and adapted them to my purposes.

      It's working fine but there is an unique and big problem. The main assembly is not being saved with the other files. It's possible to see that "vStatus" returns 4 indicating "Save error" when the first file (the main assembly) is been running. I tried to run other macros and got the same result. How can I fix it? Or, is it happening because the main assembly is opened in Solidworks?

      Has anyone had this error?

       

      Thanks in advance.

      Bppereira