6 Replies Latest reply on Aug 20, 2013 1:51 PM by Russ Keath

    I have three macros and was looking at running them from one macro.

    Russ Keath

      I have three macros and was looking at running them from one macro.

      I am looking at changing the dimensions in a drawing to inch saving out a dxf file for a vendor then changing the drawing file back to metric format.

       

      any help.

       

      Something like the below macro. I am just not that good with debuging this macro.

       

      Dim swApp As SldWorks.SldWorks

       

      Sub main()
      Set swApp = Application.SldWorks
      swApp.RunMacro2 “C:\Inch.DualDimensionsOn.swp”, “mMain”, “Main”, swRunMacroDefault, Empty
      swApp.RunMacro2 “C:\dxf save.swp”, “mMain”, “Main”, swRunMacroDefault, Empty

      swApp.RunMacro2 “C:\MM.DualDimensionsOn.swp”, “mMain”, “Main”, swRunMacroDefault, Empty

      End Sub