Share

UIApplication.CreateRibbonPanel(Tab, String) Method

Create a new RibbonPanel on the designated standard Revit tab.


Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)

Syntax

C#

public virtual RibbonPanel CreateRibbonPanel(
	Tab tab,
	string panelName
)

Parameters

tab  Tab
The target tab, on which the new panel will be created.
panelName  String
The name of the panel to be created.

Return Value

RibbonPanel

Exceptions

ExceptionCondition
ArgumentNullExceptionpanelName is null.
ArgumentExceptionpanelName is Empty or the tab is not valid.
InvalidOperationExceptionIf more than 100 panels were created or the tab cannot be found.

Remarks

This method will create a custom panel appending to the specified tab. This method is not supported in Macros.

See Also

Reference

Was this information helpful?