当前位置:网站首页>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;
}
}边栏推荐
- Sourcetree usage
- svg和canvas的区别
- Tensorflow2 of ubantu18.04 X installation
- One command to run rancher
- Read and save txt files
- Force buckle 349 Intersection of two arrays
- The difference between SVG and canvas
- Easyrecovery data recovery software recovers my photo and video data two years ago
- Unity Logitech steering wheel access
- Unity2019.3.8f1 development environment configuration of hololens2
猜你喜欢

Introduction to some representations, neighbors and degrees of Graphs

MinGW-w64下载文件失败the file has been downloaded incorrectly!

Unreal 4 learning notes - data storage using blueprints

Li Kou 2049: count the number of nodes with the highest score

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

ParticleSystem in the official Manual of unity_ Collision module

Ripple effect of mouse click (unity & shader)

中文版PyCharm改为英文版PyCharm

Unreal 4 learning notes - set player birth point

Unity + hololens publishing settings
随机推荐
Sourcetree usage
SCM learning notes: interrupt learning
Create a simple battle game with photon pun
Records of some problems encountered during unity development (continuously updated)
How does unity use mapbox to implement real maps in games?
[vcs+verdi joint simulation] ~ take the counter as an example
Unity project hosting platform plasticscm (learn to use 1)
Writing unityshader with sublimetext
Harbor API 2.0 query
Steamvr causes abnormal scene camera
Autowired注解警告的解决办法
National Museum of Singapore - give you spiritual and physical satisfaction
Meet in Bangkok for a romantic trip on Valentine's Day
C # three ways to obtain web page content
一条命令运行rancher
Basic operations of Oracle data
Unity supports the platform # define instruction of script
Unity profiler performance analysis
Have a heart beating Valentine's day in Singapore
Modbus protocol register