Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bindlmi
in reply to: WCrihfield

Hi,
that would be the perfect solution, but I'm afraid it won't work.
I was able to add my command to the CommandCategorey.

            // Create my Drawing-Button
            ButtonDefinition oBtnDef = oCommandManager.ControlDefinitions.AddButtonDefinition(...);
            // Get CommandCategory for Drawings
            CommandCategory cmdCategoryDrawing = oCommandManager.CommandCategories["ucxdrawingmanagercategory"];
            // Add my button to this category
            cmdCategoryDrawing.Add(oBtnDef);

Here you can see the result:

bindlmi_0-1730793022983.png

I had assumed that once my command is in there, Inventor will take care of the “active” commands on its own, but my command is still active in other environments as well :disappointed_face:

bindlmi_1-1730793081361.png

Should I have done more?
I will test the other suggestions.