3 Replies Latest reply on Mar 19, 2015 10:01 AM by Scott McCall

    How to make a macro to save a .igs

    Scott McCall



      I'm trying to make a macro to save a file as an .IGS file and put it into a specific directory.


      Dim swApp As Object

      Dim Part As Object
      Dim boolstatus As Boolean
      Dim longstatus As Long, longwarnings As Long

      Sub main()

      Set swApp = _

      Set Part = swApp.ActiveDoc
      longstatus = Part.SaveAs3("\\\drawings\SolidWorks\SA_LIBRARY\IGS OUTPUT\ActiveDoc.IGS", 0, 0)
      End Sub


      I know the \ActiveDoc.IGS is wrong. What does it need to be to just save the SolidWorks part file.IGS?


      Thanks in advance,