当前位置:网站首页>Revit secondary development - use panel function without opening the project
Revit secondary development - use panel function without opening the project
2022-06-30 05:09:00 【Hey, hey, hey, hey, hey, hey】
1. Settings are required when creating panel buttons “AvailabilityClassName”
2. Additional implementation is required “IExternalCommandAvailability” Interface
//
PushButtonData item1 = new PushButtonData("test", " 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;
}
}边栏推荐
- Configuration and use of controllers and routes in nestjs
- Photon pun refresh hall room list
- Golan no tests were run: fmt Printf() < BUG>
- Pytorchcnn image recognition and classification model training framework
- Detailed explanation of sorting sort method of JS array
- Nestjs introduction and environment construction
- [note] usage model tree of the unity resource tree structure virtualizingtreeview
- 【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
- Solution to Autowired annotation warning
- GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
猜你喜欢

Introduction to some representations, neighbors and degrees of Graphs

Force buckle 977 Square of ordered array
Sourcetree usage

Unity project hosting platform plasticscm (learn to use 1)

Unity C trigonometric function, right triangle corner calculation

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

Parkour demo

LxC and LXD container summary

Unity packaging failure solution

Chinese pycharm changed to English pycharm
随机推荐
Leetcode 180 Consecutive numbers (2022.06.29)
Modbus protocol register
[notes] unity Scrollview button page turning
Unity automatic pathfinding
Ugui uses its own function to realize reverse mask
Redis cluster concept
svg和canvas的区别
On mask culling of unity
JS 数组的排序 sort方法详解
力扣(LeetCode)180. 连续出现的数字(2022.06.29)
Unity packaging and publishing webgl error reason exception: failed building webgl player
Force buckle 59 Spiral matrix II
[recruitment] UE4 Development Engineer
z-index属性在什么情况下会失效?
UnityEngine. JsonUtility. The pit of fromjason()
Important knowledge points in unity3d
Database base (Study & review for self use)
Writing unityshader with sublimetext
Steamvr causes abnormal scene camera
Pytorch的安装以及入门使用