当前位置:网站首页>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;
}
}边栏推荐
- 力扣349. 两个数组的交集
- Chapter 9 of OpenGL super classic (version 7): fragment processing and frame buffering
- Does the tester need to analyze the cause of the bug?
- 【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
- Writing unityshader with sublimetext
- Unity lens making
- Some problems encountered in unity steamvr
- Solution to Autowired annotation warning
- Sourcetree usage
- Introduction to some representations, neighbors and degrees of Graphs
猜你喜欢
Sourcetree usage

Malignant bug: 1252 of unit MySQL export

Pytorch的安装以及入门使用

How does unity use mapbox to implement real maps in games?

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

Basic operations of Oracle data

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

Network communication problem locating steps

PWN Introduction (2) stack overflow Foundation

力扣704. 二分查找
随机推荐
Chinese pycharm changed to English pycharm
很紧张,第一天做软件测试,需要做什么?
Unity3d learning notes-1 (C # learning)
Force buckle 209 Minimum length subarray
Preorder traversal of Li Kou 589:n fork tree
Unity limited time use limited trial time and use times
Unity3d lookat parameter description
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
Deep learning ----- different methods to realize inception-10
GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
PWN Introduction (2) stack overflow Foundation
Photon pun refresh hall room list
Redis cluster concept
0 foundation starts self-study unit notes control direction becomes larger
Network communication problem locating steps
Basic operations of Oracle data
How does unity use mapbox to implement real maps in games?
力扣209. 长度最小的子数组
Important knowledge points in unity3d
Force buckle 977 Square of ordered array