当前位置:网站首页>Revit二次開發---未打開項目使用面板功能
Revit二次開發---未打開項目使用面板功能
2022-06-30 05:09:00 【嘿呦嘿呦嘿呦嘿】
1.創建面板按鈕時需要設置“AvailabilityClassName”
2.需額外實現 “IExternalCommandAvailability” 接口
//
PushButtonData item1 = new PushButtonData("test", "測試", dllPath, "Test.cmdTest");
item1.AvailabilityClassName = "Test.cmdTest";
//
[Transaction(TransactionMode.Manual)]
public class cmdTest : IExternalCommand, IExternalCommandAvailability
{
public Autodesk.Revit.UI.Result Execute(Autodesk.Revit.UI.ExternalCommandData revit, ref string message,Autodesk.Revit.DB.ElementSet elements)
{
return Result.Succeeded;
}
public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
{
return true;
}
}边栏推荐
- 产生 BUG 测试人员需要自己去分析原因吗?
- 003-JS-DOM-Attr-innerText
- UE4 method of embedding web pages
- Oculus quest2 development: (I) basic environment construction and guide package
- 力扣2049:统计最高分的节点数目
- Unity scroll view element drag and drop to automatically adsorb centering and card effect
- Network communication problem locating steps
- Nestjs配置静态资源,模板引擎以及Post示例
- Unity download and installation website
- Pytorch的安装以及入门使用
猜你喜欢

Unity Logitech steering wheel access

Unity2019.3.8f1 development environment configuration of hololens2

Unity3d realizes Google Digital Earth

【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example

【VCS+Verdi联合仿真】~ 以计数器为例

Records of some problems encountered during unity development (continuously updated)

力扣589:N 叉树的前序遍历

Writing unityshader with sublimetext

QT connecting external libraries

Create transfer generation point
随机推荐
Parkour demo
Unity3d realizes Google Digital Earth
Nestjs中控制器和路由的配置使用
Photon pun refresh hall room list
Log writing specification
Sourcetree usage
Pytorchcnn image recognition and classification model training framework
Unity3d packaging and publishing APK process
Unity script life cycle and execution sequence
力扣977. 有序数组的平方
Unity multiple UI page turning left and right
Records of problems encountered in unity + hololens development
Unity is associated with vs. there is a compiler problem when opening
Unity + hololens common basic functions
Unity project hosting platform plasticscm (learn to use 2)
redis集群概念
Unity notes_ SQL Function
Unity scroll view element drag and drop to automatically adsorb centering and card effect
Read and save txt files
Records of some problems encountered during unity development (continuously updated)