当前位置:网站首页>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;
}
}边栏推荐
- 力扣59. 螺旋矩阵 II
- Leetcode 180 Consecutive numbers (2022.06.29)
- Unity + hololens common basic functions
- Chapter 7 vertex processing and drawing commands of OpenGL super classic (7th Edition)
- Unity call Exe program
- Chapter 11 advanced data management of OpenGL super classic (version 7)
- Under what conditions does the Z-index attribute expire?
- Create transfer generation point
- Li Kou 2049: count the number of nodes with the highest score
- 力扣2049:统计最高分的节点数目
猜你喜欢

pycharm 数据库工具
![[vcs+verdi joint simulation] ~ take the counter as an example](/img/fb/214a4e65c53503ecbc38a5e43523cf.png)
[vcs+verdi joint simulation] ~ take the counter as an example

Introduction to some representations, neighbors and degrees of Graphs

Unity is associated with vs. there is a compiler problem when opening

Force buckle 59 Spiral matrix II

Unity3d Google Earth

Unity2019.3.8f1 development environment configuration of hololens2

Preorder traversal of Li Kou 589:n fork tree

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

Unity packaging failure solution
随机推荐
炒美原油的国际交易平台如何能保障资金安全呢?
Steamvr causes abnormal scene camera
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
svg和canvas的区别
Unity camera control
Unity project hosting platform plasticscm (learn to use 1)
C # Foundation
Force buckle 59 Spiral matrix II
Detailed explanation of sorting sort method of JS array
Unity packaging failure solution
虚析构和纯虚析构
Unity ontriggerenter does not call
Force buckle 977 Square of ordered array
力扣292周赛题解
Unity automatic pathfinding
中文版PyCharm改为英文版PyCharm
Very nervous. What should I do on the first day of software testing?
pycharm 数据库工具
Procedural animation -- inverse kinematics of tentacles
Pycharm database tool