3 Replies Latest reply on Feb 22, 2016 11:03 AM by Deepak Gupta

    Is not Step File When it is Step file error

    Luke Langdon

      I keep getting standard SW error that data loaded is not STEP. The file is a .STP does solidworks have a different way of determining  STP to STEP

      I only want error to show if part loaded is not a STP file


      Set swApp = Application.SldWorks



          Path = BrowseFolder()

          If Path = "" Then

          MsgBox "Please select the path and try again"




          Path = Path & "\"

          End If



          sFileName = Dir(Path & "*.STP") ' Change file extension here

          Do Until sFileName = ""

          Set FileTyp = swApp.LoadFile4(Path & sFileName, "r", swImportData, nErrors)

          Set FileTyp = swApp.ActiveDoc