当前位置:网站首页>Revit Secondary Development - - Project use Panel features not opened
Revit Secondary Development - - Project use Panel features not opened
2022-06-30 05:09:00 【Hé! Hé! Hé!】
1.Paramètres nécessaires pour créer un bouton de panneau“AvailabilityClassName”
2.Réalisation supplémentaire requise “IExternalCommandAvailability” Interface
//
PushButtonData item1 = new PushButtonData("test", "Tests", 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;
}
}
边栏推荐
- C # three ways to obtain web page content
- Oracle-数据的基本操作
- Chinese pycharm changed to English pycharm
- Nestjs配置静态资源,模板引擎以及Post示例
- One command to run rancher
- Network communication problem locating steps
- 炒美原油的国际交易平台如何能保障资金安全呢?
- 2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking
- Unity notes_ SQL Function
- svg和canvas的区别
猜你喜欢
【VCS+Verdi聯合仿真】~ 以計數器為例
虚析构和纯虚析构
Unity project hosting platform plasticscm (learn to use 2)
One command to run rancher
Basic operations of Oracle data
Exploration of unity webgl
Unreal 4 unavigationsystemv1 compilation error
[vcs+verdi joint simulation] ~ take the counter as an example
[note] usage model tree of the unity resource tree structure virtualizingtreeview
力扣27. 移除元素
随机推荐
Nestjs入门和环境搭建
What is multimodal interaction?
redis集群概念
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
Unity3d position the model, rotate, drag and zoom around the model to obtain the center point of the model
How can the international trading platform for frying US crude oil guarantee capital security?
How to install win7 on AMD Ruilong CPU A320 series motherboard
Nestjs中控制器和路由的配置使用
Unreal 4 unavigationsystemv1 compilation error
Force buckle 59 Spiral matrix II
Introduction to some representations, neighbors and degrees of Graphs
ParticleSystem in the official Manual of unity_ Collision module
Records of problems encountered in unity + hololens development
[recruitment] UE4 Development Engineer
Ripple effect of mouse click (unity & shader)
0 foundation starts self-study unit notes control direction becomes larger
Force buckle 349 Intersection of two arrays
Redis cluster concept
Revit二次开发---未打开项目使用面板功能
东塔攻防世界—xss绕过安全狗