是否可以在IExternalApplication.OnStartup
執行到Revit的Ribbon Panel之後動態添加命令?將IExternalApplication.OnStartup後的命令動態添加到Revit功能區?
我碰到這個職位上TheBuildingCoder ... http://thebuildingcoder.typepad.com/blog/2010/03/adding-noncommands-to-the-revit-ribbon.html
..和第一個 「附:」似乎暗示這是不可能的,但那是在2010年。我想知道是否有任何改變?
我一直無法弄清楚自己。試圖只執行,我已經以書面的結果AddPushButton()
代碼: An unhandled exception of type System.Runtime.InteropServices.SEHException' occurred in RevitAPIUI.dll
放在IExternalApplication.OnStartup
塊,這似乎意味着,我要麼需要執行的代碼添加到功能區面板內部時,它工作正常某種形式的交易模式或類似的...或者,它只是不可能:(
任何幫助,將不勝感激,謝謝!
嗯......聽起來很有希望。我會嘗試這樣的事情。如果你能提供更多的細節,我會非常感激。非常感謝! – Muers