Creation of Tab

Creation of Tab

amitnkukanur
Collaborator Collaborator
448 Views
3 Replies
Message 1 of 4

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
Accepted solutions (1)
449 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Do you mean a new open document with new tab?

0 Likes
Message 3 of 4

amitnkukanur
Collaborator
Collaborator

Jpeg.JPG

 

 

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

 

Senior Software Engineer
0 Likes
Message 4 of 4

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
www.rkw-solutions.com
0 Likes