Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
how could I replace an add-in (dll) when Inventor is running with VB.Net?
Thank you
Georg
Solved! Go to Solution.
Hello together,
how could I replace an add-in (dll) when Inventor is running with VB.Net?
Thank you
Georg
Solved! Go to Solution.
Simple answer: No, sorry. (If the .dll has been referenced there's no way of overwriting it that I know of without restarting Inventor)
Hello Georg,
If you have 1 dll running in the add-in it is not possible.
I use a work around and have a dll that only contains the addinserver and a dynamical reference to the other dll's that contains the program code.
After the first dll is loaded you let do this dll a check if there are new dll's and overwrite them.
As a note:
If this is in regards to 'updating' an Add-In, the addins all load according to the GUID associated (alphabetical). If you make another 'updater' add-in that has a higher sorted GUID will load and allow you to change all files of a different addin that has not been loaded yet.
e.g. :
With the AddIns defined below, the 'MyAddIn.Updater' will load before 'MyAddin', and is able to completely change the makeup and dll files of 'MyAddIn' as it has not been loaded yet.
<ProgIdAttribute("MyAddIn.Updater.StandardAddInServer"), GuidAttribute("3e7731de-...")> Public Class StandardAddInServer (...)
<ProgIdAttribute("MyAddin.StandardAddInServer"), GuidAttribute("5f35e35f-...")> Public Class StandardAddInServer (...)