Message 1 of 2
Unable to disable "Control Definition"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am developing an Fusion360 Add-in (It is in C++), it consist of command definition. I am trying to disable it,
Following is the code block that I am trying to implement.
Ptr<CommandDefinition> commandDefinitionPanel = commandDefinitions->itemById(commandIdOnPanel); if (!commandDefinitionPanel) { commandDefinitionPanel = commandDefinitions->addButtonDefinition(commandIdOnPanel, commandName, commandDescription, commandResources); commandDefinitionPanel->controlDefinition()->isEnabled(false); }
Code compiled and run successfully, but the button definition still enable.
Thanks in advance.