Hi,
I have developed an addin which is currently referencing SOLIDWORKS 2018. Works just fine at machines with just SW 2018 installed. Also works fine with just SW 2019 installed. But at machines with multiple versions of SW, for example SW 2018 and SW 2019 I have a problem.
The addin loads fine in both versions but the addin does not necessarily connect to the running version of SW. At my test machine it works fine with SW 2018 but when using any add-in functions in SW 2019 it starts a session of SW 2018 instead connecting to the already running SW 2019.
I am attaching to SW using the call:
swApp = GetObject(, "SldWorks.Application")
...which should connect to any running SW session, but it is not.
I have also tried:
swApp = New SldWorks
...with same result.
How to ensure that the addin connects to the running SW session - to the SW session which the addin is currently loaded in?
Regards, Jorn