18 Replies Latest reply on Oct 23, 2018 2:43 AM by Prabaharan Pichaiyan

    vb.net  saveas3 error

    Prabaharan Pichaiyan

      Hi,

      Im trying to use saveas3 command to save as in step format.

      In VBA its working fine but im facing problem with vb.net could you please anyone help with this?

       

      PartName3 = "D:\test.step"
      If fdObj.FolderExists(Folder_Location) Then
                  MsgBox(PartName3)
                  longstatus = swModel.SaveAs3(PartName3, 0, 0)
              Else
                  fdObj.CreateFolder(Folder_Location)
                  MsgBox(PartName3)
                  longstatus = swModel.SaveAs3(PartName3, 0, 0)
              End If
      
      
      

       

       

      Error

       

      asa.png


      Thanks