UIApplication uiapp = commandData.Application; UIDocument uidoc = uiapp.ActiveUIDocument; Application app = uiapp.Application; // Retrieve all the ribbon panels in the Revit application IListThe package library for this code is the Autodesk.Revit.UI.dll. This library is included in the Revit API, which is a set of libraries that can be used to create Revit plugins and customizations.ribbonPanels = app.GetRibbonPanels(); // Loop through each ribbon panel and do something with it foreach (RibbonPanel ribbonPanel in ribbonPanels) { // Do something with the ribbon panel }