Create New Ribbon Tab for Custom Addin Error

Create New Ribbon Tab for Custom Addin Error

Anonymous
Not applicable
653 Views
2 Replies
Message 1 of 3

Create New Ribbon Tab for Custom Addin Error

Anonymous
Not applicable

Hello, I am creating a custom Add-In for Inventor 2019 using Visual Basic 2019 and I am trying to make a new, custom tab for the Drawing Ribbon. I am able to successfully make a new tab as seen when I look at a list of all the  available ribbons in g_inventorApplication.UserInterfaceManager.Ribbons.Item("Drawing").RibbonTabs, but when I try to make the tab visible using newTab.Visible = True, my Add-In will no longer load into Inventor at all. Any help would be appreciated.

 

Below is a forum post I have been referencing, but even though my code matches the solution, the problem persists.

https://forums.autodesk.com/t5/inventor-customization/how-to-add-ribbon-tab-panels-and-button/td-p/2...

 

Here is my code:

Dim newCEGTab As RibbonTab = drawingRibbon.RibbonTabs.Add("CEG Drawing Tools", "id_TabCEGDrawingTools", AddInClientID, "id_TabTools", True,)
newCEGTab.Visible = True

0 Likes
654 Views
2 Replies
Replies (2)
Message 2 of 3

omartin
Advocate
Advocate

some issues I ran into when starting out:

ensure the cliedtID is correct, I remember one template I was working off, that variable wasn't working. (if you add the button to an existing tab it is working?)

make sure the internal name is unique, try adding a number at the end.

Was my reply Helpful ? send a Kudos or accept as solution
0 Likes
Message 3 of 3

Anonymous
Not applicable

I'm not sure what was wrong, but my code is working now. Thank you though!

0 Likes