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:

![Image Description](https://cdn.bimath.com/blog/pg/Snipaste_2026-01-04_16-54-25.png)
> 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:

  1. Icon pixels are 16*16
  2. The name should not be too long, otherwise it will not be displayed. It is recommended to add it in tooltip.
1
2
3
4
5
arPanel.AddSeparator();

arPanel.AddStackedItems(createParkingData,createParkingCodeData,createMonitorChange);
arPanel.AddSeparator();
arPanel.AddStackedItems(wall2SlabButtonData, putSymbolButtonData, deleteLinePatternButton);