Hi All,
I want to create a new command with my own Shortcut key in Revit 2015 through API.
I able to provide only shortcutkey for existing command, but in my scenario, i want to create a new command in that list.
I unable to find, where exactly 'KeyboardShortcuts.xml' or KeyboardShortcuts.txt will be available in our systems.
Please help me.
The shortcuts config file is found here:
%appdata%\Autodesk\Revit\Autodesk Revit 2015\KeyboardShortcuts.xml
which on a typical installation translates to:
C:\Users\[UserName]\AppData\Roaming\Autodesk\Revit\Autodesk Revit 2015\KeyboardShortcuts.xml
I couldn't find an equivalent location in %programdata%, so doing it for all users at one time such as in an installation script would be a problem. I'd suggest getting your add-in application to check at startup whether its shortcut keys are assigned and update as required. I'm not sure whether Revit needs restarting to recognise new shortcuts added directly to the file so this might not be ideal.
I created the Idea / feature request here: