Add-in automatically unloads on some computers

Add-in automatically unloads on some computers

TA.Fehr
Advocate Advocate
3,643 Views
21 Replies
Message 1 of 22

Add-in automatically unloads on some computers

TA.Fehr
Advocate
Advocate

I've written an add-in that is currently in the appstore, but with the last version it isn't doesn't stay loaded on some computers. It works on my computer, but the appstore testers were noting that it wasn't staying loaded on their computers.

If I load it on a computer that has never installed the add-in it opens the add-in manager and the user can enable it and everything works fine. But on other computers that had previous versions, the add-in manager unloads the add-in as soon as inventor opens up, or the add-in manager is closed.

 

I'm sure it has something to do with the add-in registry within Inventor itself because I can copy the working files from my computer to the not working computer and nothing changes. But I can copy the files on the not working computer to mine and it loads correctly.

Is there a way to clear the class-id or whatever references in the Inventor application? Or would this be some different problem?

0 Likes
Accepted solutions (2)
3,644 Views
21 Replies
Replies (21)
Message 21 of 22

phlyx
Collaborator
Collaborator

@c.kawabata, since the file we were copying appears to be the same file that @COLINBRUSCHI was changing settings in, the two might be accomplishing the same thing.  We may just be copying a file that has that setting already set in.  I would try his technique first (less invasive) and then if that didn't work, try the copying technique.   

Message 22 of 22

c.kawabata
Explorer
Explorer
Hey, so just doing what @colinburschi did solved my problem (set coly local of Autodesk.Inventor.Interop to True). Awesome! Thanks!