当前位置:网站首页>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;
}
}边栏推荐
- Nestjs配置静态资源,模板引擎以及Post示例
- Unreal 4 learning notes - set player birth point
- UnityEngine. JsonUtility. The pit of fromjason()
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Spring Festival Tourism Strategy: welcome the new year in Bangkok, Thailand
- Malignant bug: 1252 of unit MySQL export
- Meet in Bangkok for a romantic trip on Valentine's Day
- Tensorflow2 of ubantu18.04 X installation
- Unity multiple UI page turning left and right
- Force buckle 977 Square of ordered array
猜你喜欢

Force buckle 704 Binary search

Singapore must visit these scenic spots during the Spring Festival

力扣977. 有序数组的平方

Force buckle 349 Intersection of two arrays

Generate a slice of mesh Foundation

Records of problems encountered in unity + hololens development

Deeply understand the function calling process of C language

Oracle-数据的基本操作

Preorder traversal of Li Kou 589:n fork tree

Network communication problem locating steps
随机推荐
Unity + hololens publishing settings
The golden deer, a scenic spot in London -- a sailing museum that tells vivid sailing stories
Sourcetree usage
003-JS-DOM-Attr-innerText
Unity profiler performance analysis
QT connecting external libraries
中文版PyCharm改为英文版PyCharm
Records of problems encountered in unity + hololens development
力扣2049:统计最高分的节点数目
力扣704. 二分查找
Sailing experience not to be missed in New York Tourism: take you to enjoy the magnificent city scenery from different perspectives
2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking
Unit screenshot saved on the phone
Have a heart beating Valentine's day in Singapore
Read and save txt files
Operation file file class method
Force buckle 59 Spiral matrix II
ParticleSystem in the official Manual of unity_ Collision module
LXC 和 LXD 容器总结
Preorder traversal of Li Kou 589:n fork tree