AnsweredAssumed Answered

Is not Step File When it is Step file error

Question asked by Luke Langdon on Feb 22, 2016
Latest reply on Feb 22, 2016 by Deepak Gupta

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