thanks man, i must learn how to create a macro for Solidworks API using C# and i know some C++ basic i start watching your videos and you're the first one make some explanations about why we have to import these line to get the job down and what is the reason for that. thanks
Hi Amen, Nice video. I would like to ask you one thing that once user click button1 it will wail for SolidWorks to launch and the user form won't freeze. Does that mean button1 is accessible? If yes, what happens if user click button1 few times. It won't return swApp object just yet because it takes time to launch SolidWorks. Is it going to launch another session of SolidWorks?
Hi CAD Hero. First of all thanks a lot for nice videos. I followed exactly every step you made. However, my swApp is null in both cases (with and without async). My SolidWorks didn't start. Can you please give me some clues what I should do? I use SolidWorks 2016 and VS 2015.
Thank you for your reply. Fortunately, my code works after I uninstalled SolidWorks 2016 and installed SolidWorks 2017. I don't know the root cause, but I assume there is something wrong with the network license. The COM object in SW 2016 does not work properly.
This is great. I feel there is a lack of resources for learning this stuff so I am glad somebody has put together some step by step videos!
Thank you!
thanks man, i must learn how to create a macro for Solidworks API using C# and i know some C++ basic
i start watching your videos and you're the first one make some explanations about why we have to import these line to get the job down and what is the reason for that.
thanks
Glad I could help!
Hi Amen,
Nice video. I would like to ask you one thing that once user click button1 it will wail for SolidWorks to launch and the user form won't freeze. Does that mean button1 is accessible? If yes, what happens if user click button1 few times. It won't return swApp object just yet because it takes time to launch SolidWorks. Is it going to launch another session of SolidWorks?
I think so. You can disable the button while the app awaits an instance of SOLIDWORKS.
Hi CAD Hero. First of all thanks a lot for nice videos. I followed exactly every step you made. However, my swApp is null in both cases (with and without async). My SolidWorks didn't start. Can you please give me some clues what I should do? I use SolidWorks 2016 and VS 2015.
Send me an email to amen@cadhero.com with your code and I'll debug it for you.
Thank you for your reply. Fortunately, my code works after I uninstalled SolidWorks 2016 and installed SolidWorks 2017. I don't know the root cause, but I assume there is something wrong with the network license. The COM object in SW 2016 does not work properly.
Perhaps, it has something to do with the ProgId "SldWorks.Application".
@@2beBenz SAME thing for me i don't know why it doesn't work .I have problem with Solidworks.Interop.sldworks.dll