2 Replies Latest reply on Apr 14, 2016 10:12 AM by Suresh Vijayan

    How to import step file in solidworks using c#.net

    Suresh Vijayan


      i am facing problem in importing the step file in solidworks using c#.net.


      i used the api help, with that reference i used loadfile2 option to import step file.

      but it showing error kindly help me to solve this problem

      thanks in advance.

      below i attached by code.

      stepfiles = path of the stepfile


      public string ConvertingStpFile(string strStpFilePath)





                  //=========================================Gets the Files From the folder=====================================




                  string[] stpFilesFolder = Directory.GetFiles(strStpFilePath);          



                  foreach (string StepFiles in stpFilesFolder)


                      isldWorks.LoadFile2(StepFiles, "r");



      return strStpFilePath;