AnsweredAssumed Answered

How to automatically update an add-in already loaded in memory

Question asked by Matteo Orlandelli on Jul 14, 2010
Latest reply on Jul 15, 2010 by Matteo Orlandelli

Hi all, I'm searching for suggestions regarding following issue:

I have custom add-in installed on many solidworks workstation on my network... I would like to distribute on the network possible updates I release for this custom add-in...

Add-in is installed on local drive.

My idea was this:

through my PDM system I can execute a vbscript on starting solidworks event... this vbscript will check if add-in ("file_name.dll") installed on local drive is up to date with the newer saved on a specific network folder. If it is'nt, I would to unload the old add-in, overwrite the old "file_name.dll" with the newer one, and then re-load the add-in...

In this procedure I get error during the overwrite step, probably because the dll is still loaded in memory even if I unload it...

 

How can I do? Must I necessary close solidworks app to overwrite the dll? In this case, I probably need to do this through an "exe" procedure, because my vbscript can't run after solidworks app is dead...

 

Thanks in advance!

 

Outcomes