Hello everyone.
I am creating a standalone app and I'm using
Dim swApp As ISldWorks = TryCast(GetObject("", PROG_ID), ISldWorks)
to connect to Solidworks.
My issue is when I open Solidworks normally I get this for my sidebar. The blue sphere will allow me to use the file browser tab to access our vault.
When I use the standalone I get this for my sidebar, which has the normal File Browser icon.
Is there anyway to force the connection to the vault so I get the first icon?
Thanks.
SolidworksApi macros
Hi Matt,
When you start application with GetObject - you are starting embeded version of SOLIDWORKS and no add-ins are loaded (like in your case SW PDM add-in is not loaded). You can go to Tools->Addins to see that all of the add-ins are unchecked.
Please take a look at this article of detailed explanation how to fix it: Code Stack: Connect to SOLIDWORKS from Stand-Alone Application
Thanks,
Artem
Artem,
Your blog is the reason I started to make standalones. That being said I am still not sure how to properly go about this. I would prefer to not start Solidworks with a Process.Start method as I am not sure how to open it in the background, and both the GetObject and System.Activator.CreateInstance methods open Solidworks without running addins.
Ok. Got you. You can use LoadAddin api to explicitly load pdm addin when created via GetObject.
Thanks for your help Artem.