当前位置:网站首页>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;
}
}边栏推荐
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Unreal 4 learning notes - set player birth point
- Pit of smoothstep node in shadergraph
- Force buckle 59 Spiral matrix II
- Network communication problem locating steps
- Unity + hololens publishing settings
- SCM learning notes: interrupt learning
- Brew install NVM command not found solution
- 一条命令运行rancher
- 力扣209. 长度最小的子数组
猜你喜欢

Pycharm database tool

Approaching history, introduction to the London Guard Museum

Autowired注解警告的解决办法

Unity realizes rotation and Revolution

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

Unity + hololens2 performance test

Unity3d packaging and publishing APK process

Unreal 4 unavigationsystemv1 compilation error

Detailed explanation of the process of "flyingbird" small game (camera adjustment and following part)

MinGW-w64下载文件失败the file has been downloaded incorrectly!
随机推荐
Unity automatic pathfinding
Harbor API 2.0 query
How does unity use mapbox to implement real maps in games?
Important knowledge points in unity3d
Unity multiple UI page turning left and right
A collection of errors encountered in machine learning with unity
Detailed explanation of the process of "flyingbird" small game (camera adjustment and following part)
Moore Manor diary I: realize the reclamation, sowing, watering and harvest in Moore Manor
深度学习------不同方法实现Inception-10
Approaching history, introduction to the London Guard Museum
Parkour demo
Some books you should not miss when you are new to the workplace
Unity a* road finding force planning
Unreal 4 unavigationsystemv1 compilation error
力扣292周赛题解
QT connecting external libraries
HTC vive cosmos development - handle button event
Unity + hololens common basic functions
Meet in Bangkok for a romantic trip on Valentine's Day
Ugui uses its own function to realize reverse mask