Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to assign new Command with Shortcut Key through Revit API

2 REPLIES 2
Reply
Message 1 of 3
DMallikarjuna
444 Views, 2 Replies

How to assign new Command with Shortcut Key through Revit API

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.

 

Thank You,
Mallikarjuna
2 REPLIES 2
Message 2 of 3
Aaron.Lu
in reply to: DMallikarjuna

dear, I'm not sure where they are located, but you can type "KS" in the project editor, and find the command in the popped up dialog to assign shortcuts to it.


Aaron Lu
Developer Technical Services
Autodesk Developer Network
Message 3 of 3

Dear Mallikarjuna,

 

Here are two related discussions on The Building Coder:

 

http://thebuildingcoder.typepad.com/blog/2015/02/keyboard-shortcuts-and-other-news.html#5

http://thebuildingcoder.typepad.com/blog/2012/06/replacing-built-in-commands-and-their-ids.html

 

The most important hints for you are probably to be found in the attached comments.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community