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: 

Creation of Tab

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
amitnkukanur
421 Views, 3 Replies

Creation of Tab

amitnkukanur
Collaborator
Collaborator

Actually i am trying to add a new tab in inventor but am getting confused of doing so. Is it possible to add a new tab to inventor using .NET

Senior Software Engineer
0 Likes

Creation of Tab

Actually i am trying to add a new tab in inventor but am getting confused of doing so. Is it possible to add a new tab to inventor using .NET

Senior Software Engineer
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: amitnkukanur

Anonymous
Not applicable

Do you mean a new open document with new tab?

0 Likes

Do you mean a new open document with new tab?

Message 3 of 4
amitnkukanur
in reply to: Anonymous

amitnkukanur
Collaborator
Collaborator

Jpeg.JPG

 

 

A new Tab after Sketch, this is am trying to do.

 

Senior Software Engineer
0 Likes

Jpeg.JPG

 

 

A new Tab after Sketch, this is am trying to do.

 

Senior Software Engineer
Message 4 of 4
Ralf_Krieg
in reply to: amitnkukanur

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

from programmers help:

 

' Set a reference to the user interface manager.
Dim oUIManager As UserInterfaceManager
Set oUIManager = oApp.UserInterfaceManager

' Get the ribbon associated with part documents
Dim oRibbon As Ribbon
Set oRibbon = oUIManager.Ribbons.Item("Part")

' Create a new tab
Dim oTab As RibbonTab
Set oTab = oRibbon.RibbonTabs.Add("My Tab", "invrMyTab", "CLSID of the AddIn", , , False)
  
' Create a new panel within the tab
  Dim oPanel As RibbonPanel
  Set oPanel = oTab.RibbonPanels.Add("My Panel", "invrMyPanel", "CLSID of the AddIn")
  
' Create a control within the panel
Call oPanel.CommandControls.AddButton(oButtonDefinition, True)

 

Adding a new tab is easy. I'm not sure what's the confusing point?!?


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
0 Likes

Hello

 

from programmers help:

 

' Set a reference to the user interface manager.
Dim oUIManager As UserInterfaceManager
Set oUIManager = oApp.UserInterfaceManager

' Get the ribbon associated with part documents
Dim oRibbon As Ribbon
Set oRibbon = oUIManager.Ribbons.Item("Part")

' Create a new tab
Dim oTab As RibbonTab
Set oTab = oRibbon.RibbonTabs.Add("My Tab", "invrMyTab", "CLSID of the AddIn", , , False)
  
' Create a new panel within the tab
  Dim oPanel As RibbonPanel
  Set oPanel = oTab.RibbonPanels.Add("My Panel", "invrMyPanel", "CLSID of the AddIn")
  
' Create a control within the panel
Call oPanel.CommandControls.AddButton(oButtonDefinition, True)

 

Adding a new tab is easy. I'm not sure what's the confusing point?!?


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com

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

Post to forums  

Autodesk Design & Make Report