Shortcut for a custom interface buttonDefinition

Shortcut for a custom interface buttonDefinition

wh6Q9NU
Advocate Advocate
974 Views
3 Replies
Message 1 of 4

Shortcut for a custom interface buttonDefinition

wh6Q9NU
Advocate
Advocate

For a custom Add-Inn a buttonDefinition is defined (to open a commandDefinitionPanel).

How can I define a shortCut for this buttonDefinition on creation?

 

Thanks in advance for any help!

 

custom shortcut

0 Likes
975 Views
3 Replies
Replies (3)
Message 2 of 4

marshaltu
Autodesk
Autodesk

Hello,

 

Did you mean to promote custom command definition to toolbar panel? If so, it should be supported by default. One example is "Spur Gear" addin. We can promote the button to toolbar by "Add to toolbar". If it didn't work for your case, please provide workable sample to us for investigation.

 

Thanks,

Marshal

 

Shortcut for custom interface.png



Marshal Tu
Fusion Developer
>
0 Likes
Message 3 of 4

wh6Q9NU
Advocate
Advocate

Thanks, but the solution I'm looking for is assigning a shortcut so the custom feature can be started with single keystroke. Like the "L" for creating a Sketch line. But maybe that's not currently possible. 

 

Shortcut example for Line: "L"

0 Likes
Message 4 of 4

marshaltu
Autodesk
Autodesk

Hello,

 

Unfortunately we don't have APIs to set keyboard shortcuts for commands yet. I would recommend you to log the idea to our IdeaStation so that our product management team can prioritize it and other users can vote for your idea.

 

http://forums.autodesk.com/t5/ideastation-request-a-feature-or/idb-p/125

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes