Izzy Rodriguez
Izzy Rodriguez

Reputation: 2185

Programmatically create a keyboard shortcut in Revit

Can I programmatically create a keyboard Shortcut to my add-in's in Revit?

Upvotes: 0

Views: 2296

Answers (2)

skeletank
skeletank

Reputation: 2888

According to the Building Coder you should be able to do this through the API as of Revit 2013.

Upvotes: 0

Maxence
Maxence

Reputation: 13296

Manualy, you can by adding a line to KeyboardShortcuts.txt located in the Revit Program folder. Look at these posts for more explanations: http://thebuildingcoder.typepad.com/blog/2009/04/addin-keyboard-shortcut.html and http://blog.rodhowarth.com/2009/04/how-to-create-keyboard-shortcuts-to.html

But as this file is stored in Program Files, you will not be able to write to it without being logged as administrator (Windows Vista, Windows 7). And Revit can lock it also.

Upvotes: 1

Related Questions