Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Add ButtonDefinitions to panel runtime

1 REPLY 1
Reply
Message 1 of 2
erik.martinsson
221 Views, 1 Reply

Add ButtonDefinitions to panel runtime

Does anyone have any hint on how to add Buttons to Ribbons->customaddintab->panel runtime?

I have a custom "settingwindow" for enabling/disabling addins, and when enabling one of

the addins I want a new button to appear.

 

The Addin is always "loaded" on Inventor startup, but not always enabled. One way could be to always keep

the button in the panel, but changing something like visible = true/false.

 

Any help would be appreciated šŸ˜ƒ

1 REPLY 1
Message 2 of 2
rjay75
in reply to: erik.martinsson

I do something similar in an Addin. I went the route of adding buttons as needed but turning on or off the visibility after they are first added. Not sure how efficent it is adding/removing buttons continuously.

 

Another thing you may want to think of for consistency is keeping the button visible but disabling it when it is not needed. That way users know it's there and where it is and it cues them when it can be used.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report