11-04-2024
11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-04-2024
11:52 PM
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:
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 ![]()
Should I have done more?
I will test the other suggestions.