Creating Stacked PushButtons in Revit API
To make it easier to understand, it is called Compact Button, but it should actually be called Stacked Button. The keyword is StackedItems. The effect is shown below:

> https://knowledge.autodesk.com/support/revit/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Revit/files/GUID-1547E521-59BD-4819-A989-F5A238B9F2B3-htm.html
The reference link above introduces the usage of each button and provides detailed code, which can be referred to for query practice.
Because those who need this command should be developers with sufficient quantity, I will directly post the code for adding it as needed.
Precautions:
- Icon pixels are 16*16
- The name should not be too long, otherwise it will not be displayed. It is recommended to add it in tooltip.
1 | arPanel.AddSeparator(); |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





