3 Replies Latest reply on Aug 20, 2018 10:35 AM by Michael Corriveau-Cote

    Solidworks Standalone - Unable to cast Com object SldWorksClass to Interface ISldworks

    Michael Corriveau-Cote

      Hi everyone!


      Quite new with this way of@ doing. I normally build Addins with Solidworks. For this project , there are no reason for it to be an addin. It makes more sense for it to be a standalone application. Here's my problem :


              /// <summary>
              /// https://www.codestack.net/solidworks-api/getting-started/stand-alone/
              /// </summary>
              /// <returns></returns>
              static public SldWorks Connect2Solidworks()
                  return new SolidWorks.Interop.sldworks.SldWorks();


      SldWorks Syntax.PNG


      2018-08-18 UPDATE : Still a problem


      Maybe Artem Taturevych can help me with this one too!