Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to activate Tab on the Ribbon?

4 REPLIES 4
Reply
Message 1 of 5
jursa_martin
3461 Views, 4 Replies

How to activate Tab on the Ribbon?

Hi All. How to activate specific Tab on the Ribbon by VB.Net code? Exist any way how to "bring to front" my own Ribbon Tab?

Thanks Martin
4 REPLIES 4
Message 2 of 5
Ralf_Krieg
in reply to: jursa_martin

Hello

It's VBA, but the way is the same.

Sub ChangePanelToToolsTab()

' Get the ribbon associated with the part document
Dim oPartRibbon As Ribbon
Set oPartRibbon = ThisApplication.UserInterfaceManager.Ribbons.Item("Part")

' Get your own tab
Dim oTab As RibbonTab
Set oTab = oPartRibbon.RibbonTabs.Item("your_own_tab_name")

'activate it
oTab.Active = True

End Sub

R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 3 of 5
jursa_martin
in reply to: jursa_martin

Hi krieg, thanks for reply, your code working fine. I appreciate your help.

Martin
Message 4 of 5
amitnkukanur
in reply to: Ralf_Krieg

Its not working, 

 

oTab = oPartRibbon.RibbonTabs.Item("Test")

got error on this above line

how to resolve this

Senior Software Engineer
Message 5 of 5
ekinsb
in reply to: amitnkukanur

The name you use to specify the tab in the internal name that was assigned when the tab was created.  This may or may not be the same as the displayed name on the tab.  With the information you've given that's the only thing I can think of that might be wrong.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report