Inventor Addin

Inventor Addin

sundaram1087
Advocate Advocate
314 Views
1 Reply
Message 1 of 2

Inventor Addin

sundaram1087
Advocate
Advocate

Hi

 

         I have created the  custom assembly ribbon tab in inventor using inventor Addin. It loaded automatically when the assembly file gets open and works fine

 

 

          If i open the both assembly file and part file or assembly and drawing file simultaneously the custom assembly ribbon tab which was created using addin not visible to me it gets disapper.

 

          Am not able to find the problem for this

 

         

        Please provide the solution for this

 

Regards,

K.Shunmugasundaram

 

 

0 Likes
315 Views
1 Reply
Reply (1)
Message 2 of 2

Owner2229
Advisor
Advisor

Hi, which Ribbon panel are you ussing?

 

Something like this?

 

Ribbon = "Assembly"

RibbonTab =  "id_TabAssemble"

RibbonPanel = "MyAddin_Panel"

 

If you're ussing VB.Net, your placing code should look like something like this below.

It requires you to pass it your m_ClientTD (your Addin's GUID) and the button definition

 

Dim oRibbon As String = "Assembly"
Dim oTab As String = "id_TabAssemble"
Dim oPanel As String = "MyAddin"

Dim UIManager As Inventor.UserInterfaceManager
UIManager = InventorApplication.UserInterfaceManager

' Get the assembly ribbon
Dim assemblyRibbon As Inventor.Ribbon = UIManager.Ribbons.Item(oRibbon)
		
' Get the tab
Dim assembleTab As Inventor.RibbonTab
assembleTab = assemblyRibbon.RibbonTabs.Item(oTab)

' Create a new panel on the Assemble tab
Dim panel As Inventor.RibbonPanel
Try
	panel = assembleTab.RibbonPanels.Add(oPanel, _
	oPanel & "_Panel", m_ClientID)
Catch
	panel = assembleTab.RibbonPanels.Item(oPanel & "_Panel")
End Try
	
' Add the buttons to the tab, True for large button
panel.CommandControls.AddButton(m_ButtonDefinition, True)

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
0 Likes