hello everyone, when I register my DLL file on the other computer, I have to copy it into the solidworks folder (C:\...\Solidworks), anyother folder the program will not work, Why?
As Keith already said make sure to copy all the the interops you use in your add-in / application to the folder where you want your DLL to be.
How do you register your DLL?
I use another folder and it works fine.
I used :
Create a setup and deployment project for your addin or standalone application. This will make sure that all the dependencies are deployed with the dll (the interops).
Thank you! I will try.
If you create a installer using setup and deployment project make sure that while installing it do not choose SolidWorks folder as the location. We do not want to overwrite the already existing interops in SolidWorks installation folder.
You can install it at any other location and will be able to register the dll without any issues.
Probably because your add-in relies on the interops that are found within this folder:
These interops need to be in the same folder in which you register the DLL on your colleague's computer.
SolidWorks API Tutorials
thank you Keith, then what should I do?
it works, thank you!
Retrieving data ...