| Revit 2017 API |
| UIControlledApplication..::..CreateRibbonPanel Method (String, String) |
| UIControlledApplication Class See Also |
Create a new RibbonPanel on the specified tab.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 17.0.0.0 (17.0.484.0)
Syntax
| C# |
|---|
public virtual RibbonPanel CreateRibbonPanel( string tabName, string panelName ) |
| Visual Basic |
|---|
Public Overridable Function CreateRibbonPanel ( _ tabName As String, _ panelName As String _ ) As RibbonPanel |
| Visual C++ |
|---|
public: virtual RibbonPanel^ CreateRibbonPanel( String^ tabName, String^ panelName ) |
Parameters
- tabName
- Type: System..::..String
The name of the tab, on which the new panel will be created.
- panelName
- Type: System..::..String
The name of the panel to be created.
Remarks
This method will create a custom panel appending to the specified tab. This method is not supported in Macros.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | tabName or panelName is nullNothingnullptra null reference (Nothing in Visual Basic). |
| Autodesk.Revit.Exceptions..::..ArgumentException | tabName or panelName is Empty. |
| Autodesk.Revit.Exceptions..::..InvalidOperationException | Too many panels have been added to this tab (Maximum is 100). |