9 Replies Latest reply on Jun 29, 2017 2:34 AM by Deepak Gupta

    change drawing template VBA

    Nigel Shaw



      I need to create a drawing for parts & Assemblies in VBA but by selecting the drawing template depending on the part / assembly... For example:


      Parts = "C:\Solidworks Files\Templates\Drawing-Part.drwdot"

      Assembly = "C:\Solidworks Files\Templates\Drawing-Assy.drwdot"


      from a top level assembly, i am iterating through the child objects and depending on the type (Part or Assembly), i need to use the appropriate template. Cant find any code anywhere.... Can anyone help?