The Inventor API has provided the Ribbon API for some time. We can use the Inventor Ribbon API to access to those existing Ribbon UI elements such as Ribbon Environment, Ribbon Tab, Ribbon Panel, Ribbon Button, Various Ribbon Controls, and so on.
In these series, we are going to look at the Application Menu (File Browser Controls). In this post, let’s specifically add a Ribbon Copy to the Application Menu (File Browser Controls).
public void AddCopyToApplicationMenu()
UserInterfaceManager uiMan = AddinGlobal.InventorApp.UserInterfaceManager;
if (uiMan.InterfaceStyle == InterfaceStyleEnum.kRibbonInterface)
RibbonTab srctab = GetSetRibbonTab("Presentation", "N/A", "id_TabTools");
RibbonPanel srcpanel = GetSetRibbonPanel(srctab, "N/A", "id_PanelPn_ToolsManage");
As can be seen, the key point is to get the Ribbon Application Menu (File Browser Controls) from the Inventor Application through the UserInterfaceManager.FileBrowserControls property. Then adding a Copy to the Ribbon Application Menu (File Browser Controls) is pretty much the same as doing so to a Ribbon Panel that we have demonstrated many times.
Here is what the Copy looks like in the Application Menu (File Browser Controls):
The leading edge Inventor .NET Addin Wizard (InventorNetAddinWizard) can be found and downloaded from the A Wizard for Inventor .NET Addin page.