当前位置:网站首页>Revit二次开发---未打开项目使用面板功能
Revit二次开发---未打开项目使用面板功能
2022-06-30 05:06: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;
}
}边栏推荐
- 力扣349. 两个数组的交集
- Draw on screen border in Commodore 64
- Deep learning ----- different methods to realize inception-10
- 【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
- Unreal 4 learning notes - set player birth point
- QT connecting external libraries
- Li Kou 2049: count the number of nodes with the highest score
- Force buckle 349 Intersection of two arrays
- Unity multiple UI page turning left and right
- Records of some problems encountered during unity development (continuously updated)
猜你喜欢

Unity3d realizes Google Digital Earth

Oculus quest2 development: (I) basic environment construction and guide package

Preorder traversal of Li Kou 589:n fork tree

Network communication problem locating steps

Malignant bug: 1252 of unit MySQL export

Force buckle 27 Removing Elements

【VCS+Verdi聯合仿真】~ 以計數器為例

The golden deer, a scenic spot in London -- a sailing museum that tells vivid sailing stories

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

Force buckle 59 Spiral matrix II
随机推荐
Preorder traversal of Li Kou 589:n fork tree
力扣349. 两个数组的交集
0 foundation starts self-study unit notes control direction becomes larger
Yolov5 torch installation
JPA composite primary key usage
Have a heart beating Valentine's day in Singapore
Chapter 9 of OpenGL super classic (version 7): fragment processing and frame buffering
Unity a* road finding force planning
MySQL query gadget (I) replace a property value of the object in the JSON array in the JSON format string field
OpenGL draws model on QT platform to solve the problem of initializing VAO and VBO
How to install win7 on AMD Ruilong CPU A320 series motherboard
Deep learning ----- different methods to realize inception-10
Redis cluster concept
力扣704. 二分查找
Unity/ue reads OPC UA and OPC Da data (UE4)
Singleton mode in unity
Check London attractions suitable for parents and children in winter vacation
Unreal 4 learning notes - Animated Montage
C # Foundation
【VCS+Verdi联合仿真】~ 以计数器为例