Replace dll

Replace dll

GeorgK
Advisor Advisor
708 Views
4 Replies
Message 1 of 5

Replace dll

GeorgK
Advisor
Advisor

Hello together,

 

how could I replace an add-in (dll) when Inventor is running with VB.Net?

 

Thank you

 

Georg

0 Likes
Accepted solutions (1)
709 Views
4 Replies
Replies (4)
Message 2 of 5

AlexFielder
Advisor
Advisor

Simple answer: No, sorry. (If the .dll has been referenced there's no way of overwriting it that I know of without restarting Inventor)

0 Likes
Message 3 of 5

w.pepping
Advocate
Advocate
Accepted solution

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. 

Get control of your sheet metal files.
Download the app from matprop.com
Message 4 of 5

GeorgK
Advisor
Advisor

Hello Wim,

 

could you please post your solution?

 

Thank you very much

 

Georg

0 Likes
Message 5 of 5

Anonymous
Not applicable

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 (...)

 

0 Likes