2 Replies Latest reply on Feb 18, 2013 5:38 PM by Christian Chu

    How to save the solidworks file as STEP AP214 with VBA??!!

    Chen Shaohua

      see the macro:

       

       

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

       

      Sub main()

       

      Set swApp = Application.SldWorks
      Set Part = swApp.ActiveDoc

      napart = Part.GetTitle
      typepart = Left(napart,Len(napart) - 7)

      Part.SaveAs2 typepart & ".STEP", 0, True, False


      End Sub

       

       

      It can save the file as STEP AP203 file.

      How can save the file as STEP AP214 file?

      Help!!