IExternalApplication.OnStartup
是否可以在执行到 Revit 的功能区面板后动态添加命令?
我在 TheBuildingCoder 上看到了这篇文章... http://thebuildingcoder.typepad.com/blog/2010/03/adding-noncommands-to-the-revit-ribbon.html
..那里的第一个“PS”似乎暗示这是不可能的,但那是在2010年。我想知道是否有任何改变?
我自己一直无法弄清楚。尝试仅执行AddPushButton()
我编写的代码会导致:
An unhandled exception of type System.Runtime.InteropServices.SEHException' occurred in RevitAPIUI.dll
当放置在IExternalApplication.OnStartup
块内时它工作正常,这似乎意味着我需要执行代码以某种事务模式或类似方式添加到功能区面板......或者,这是不可能的:(
任何帮助将不胜感激,谢谢!