- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm about to create a Command that can be accessed via shortcuts but has no (Visible) button on Ribbon, if possible.
Everything works fine if I create a (visible) ribbon button for the command: the command's PushButtonData.text field can be seen on "Keyboard Shortcuts" panel, I can associate a keystroke for that an pressing keys the command runs. Note that as the button is added to the ribbon, it can be seen (but I don't want to do so, this is a shortcut for more advanced/productive users and would have not much advance if user had do click on through selected panel of ribbon bar).
If I make the button invisible (RibbonItem's Visible = false) then I can assign a keystroke (shown there) but if I press that, the method doesn't run.
Note that I've checked TheBuildingCoder's articles here:
https://jeremytammik.github.io/tbc/a/1040_postcommand.htm
https://thebuildingcoder.typepad.com/blog/2013/03/whats-new-in-the-revit-2013-api.html
And haven't found a clue but maybe problem's on my side.
Is there any idea how to make a Command available for "Keyboard Shortcuts" without displaying it as a ribbon button?
Thanks in advance
Solved! Go to Solution.