在Revit中以编程方式创建键盘快捷方式

本文关键字:创建 键盘 快捷方式 方式 编程 Revit | 更新日期: 2023-09-27 18:26:01

我可以在Revit中以编程方式为外接程序创建键盘快捷方式吗?

在Revit中以编程方式创建键盘快捷方式

手动操作,可以在Revit Program文件夹中的KeyboardShortcuts.txt中添加一行。查看这些帖子了解更多解释:http://thebuildingcoder.typepad.com/blog/2009/04/addin-keyboard-shortcut.html和http://blog.rodhowarth.com/2009/04/how-to-create-keyboard-shortcuts-to.html

但是,由于此文件存储在程序文件中,如果没有以管理员身份登录(Windows Vista、Windows 7),您将无法对其进行写入。Revit也可以锁定它。

根据建筑编码程序,自Revit 2013起,您应该能够通过API执行此操作。