revit 开发 不打开文档按钮可用


step

1:写个类A继承接口 IExternalCommandAvailability,实现方法返回true.

2:加到菜单时,Pushbutton .AvailabilityClassName=A的全名。