Inventor Will Only Load 1 Custom Add-in at a Time

Inventor Will Only Load 1 Custom Add-in at a Time

Anonymous
Not applicable
405 Views
2 Replies
Message 1 of 3

Inventor Will Only Load 1 Custom Add-in at a Time

Anonymous
Not applicable

A coworker and i have made several VBA macros in Inventor for our department at work. I have started looking into converting these into Addins with Visual Studio. I have been messing with it for a few days now and have run into a snag. I created 2 Addins in VS, each under its own Project. Both are just buttons that, when pressed, bring up a message. The problem i have found is that Inventor will only allow me to load one of these at one time. Is this because neither has a signature? Or is there some other reason why i cannot have both Addins running at the same time?

 

0 Likes
Accepted solutions (1)
406 Views
2 Replies
Replies (2)
Message 2 of 3

Xun.Zhang
Alumni
Alumni

Hi @Anonymous,

 

Try to put the customer addin dll under "C:\Program Files\Autodesk\Inventor 2018\Bin\" and make sure it was listed in addin manager, do not check option block but check the other two. 

 

Hope it helps!

 

11.png


Xun
Message 3 of 3

Anonymous
Not applicable
Accepted solution

@Xun.Zhang wrote:

Hi @Anonymous,

 

Try to put the customer addin dll under "C:\Program Files\Autodesk\Inventor 2018\Bin\" and make sure it was listed in addin manager, do not check option block but check the other two. 

 

Hope it helps!

 

11.png


Xun.Zhang, i tried putting them in the folder you mentioned, but the problem still happens. Neither Add-in has the block option checked. They both have the "Load Automatically" checked. But, after doing some looking at my code on both projects for the Add-ins, i believe i solved my issue. The following two lines where i was defining the button & the Ribbon Panel had the same internal name between both projects. after making them unique for each project, both Add-ins loaded no problem. 

 

taiButton = controlDefs.AddButtonDefinition("Test Button", "TestAddIn_IN", CommandTypesEnum.kShapeEditCmdType, AddInClientID)

 

Dim customPanel2 As RibbonPanel = toolsTab.RibbonPanels.Add("Panel 1", "TestAddIn_Panel", AddInClientID)