wh7r4bb17.InventorRibbonManager 1.0.0

dotnet add package wh7r4bb17.InventorRibbonManager --version 1.0.0
                    
NuGet\Install-Package wh7r4bb17.InventorRibbonManager -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="wh7r4bb17.InventorRibbonManager" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="wh7r4bb17.InventorRibbonManager" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="wh7r4bb17.InventorRibbonManager" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add wh7r4bb17.InventorRibbonManager --version 1.0.0
                    
#r "nuget: wh7r4bb17.InventorRibbonManager, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package wh7r4bb17.InventorRibbonManager@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=wh7r4bb17.InventorRibbonManager&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=wh7r4bb17.InventorRibbonManager&version=1.0.0
                    
Install as a Cake Tool

About

Inventor Ribbon Manager is a helper library to create Ribbon Tabs, Panels, and Buttons for an Inventor Addin.

Set the Property 'AdskVersion' to the Inventor Version you are using, e.g. "2025" for Inventor 2025. Since Inventor 2025 the library use .NET8, for older versions .NET framework 4.8 is used.


🔧 Prerequisites

  • Reference to InventorRibbonManager.dll (or included as a project)
  • Your AddIn implements ApplicationAddInServer

🧱 Basic Structure

1. InventorRibbonBuilder

Main entry class to create tabs, panels, and controls.

var ribbonBuilder = new InventorRibbonBuilder(inventorApp, myAddInGuid);

2. Create your own commands

Create your own classes that implement IPanelButton.
Example:

public class MyButton : IPanelButton
{
    public string DisplayName => "Hello";
    public string InternalName => "Hello.Internal";
    public string PanelName => "Example";
    public string PanelInternalName => "Example.Internal";
    public RibbonType Environment => RibbonType.Part;

    public ButtonDefinition InventorButtonDefinition { get; }

    public MyButton(Inventor.Application app)
    {
        InventorButtonDefinition = app.CommandManager.ControlDefinitions.AddButtonDefinition(
            DisplayName, InternalName, CommandTypesEnum.kShapeEditCmdType,
            StandardAddInServer._guid, "Tooltip", DisplayName, null, null);

        InventorButtonDefinition.OnExecute += (ctx) =>
            System.Windows.Forms.MessageBox.Show("Button clicked!");
    }

    public void AddToPanel(IRibbonPanel panel, RibbonType env)
    {
        panel.AddButton(this, true, env);
    }

    public void Execute() { }
    public object Icon => null;
    public bool Pressed { get; set; }
}

3. Register your buttons

Create button instances:

var buttons = new List<IPanelButton>
{
    new MyButton(inventorApp),
    new MyPopup(inventorApp),
    new MyComboBox(inventorApp)
};

Then automatically generate all panels and controls:

InventorRibbonBuilder.CreatePanelsAndButtonsForTab(
    ribbonBuilder,
    "My Tab",               // Display name
    "MyTab.InternalName",   // Internal name
    buttons
);

🔄 Supported Controls (IRibbonPanel Methods)

Type Method Example Class
Standard Button AddButton SampleButton
ButtonPopup AddButtonPopup ButtonPopupCommand
Popup AddPopup PopupCommand
SplitButton AddSplitButton SplitButtonCommand
SplitButton MRU AddSplitButtonMRU SplitButtonMRUCommand
TogglePopup AddTogglePopup TogglePopupCommand
ComboBox AddComboBox ComboBoxCommand
Gallery AddGallery GalleryCommand

💡 All variants also exist as ToSlideout(...).


🛠 Using Slideouts

Inside your AddToPanel(...) method, you can use slideout placement:

panel.AddButtonToSlideout(this, env);
panel.AddPopupToSlideout(...);
panel.AddComboBoxToSlideout(...);

🔌 AddIn Integration

In your StandardAddInServer class:

public void Activate(ApplicationAddInSite addInSiteObject, bool firstTime)
{
    _guid = ((GuidAttribute)Attribute.GetCustomAttribute(GetType(), typeof(GuidAttribute))).Value;
    _inventorApp = addInSiteObject.Application;

    var ribbonBuilder = new InventorRibbonBuilder(_inventorApp, _guid);

    var buttons = new List<IPanelButton>
    {
        new SampleButton(_inventorApp),
        new ComboBoxCommand(_inventorApp),
        // more...
    };

    InventorRibbonBuilder.CreatePanelsAndButtonsForTab(
        ribbonBuilder,
        "DemoTab",
        "DemoTab.Internal",
        buttons
    );
}

✅ Summary

With InventorRibbonManager you can:

  • Define Inventor Ribbons cleanly and in structured C#/WPF-style
  • Easily create buttons, combo boxes, split buttons, galleries, and popups
  • Work fully typed and reusable across your AddIn architecture
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 259 6/13/2025