Message 1 of 4
How excecute shortcut from api revit
Not applicable
04-08-2015
01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone
i developing a revit addin ussing C# 2012. Need excecute my shortcut (WS) when i press a button on my form. This shortcut open the WorkSets box. a friend recommended me use the method UiApplication.PostCommand, i try with this code:
UIApplication uiapp = _commandData.Application;
uiapp.PostCommand(Shortcut="WS");
uiapp.PostCommand(Shortcut("WS"));
uiapp.PostCommand(commandId("WS"));
uiapp.PostCommand("WS");
but no one to work, can somebody help me.
Regards.