UIControlledApplication.RegisterDockablePane
Description:
Adds a new dockable pane to the Revit user interface.
Adds a new dockable pane to the Revit user interface.
public void RegisterDockablePane(
DockablePaneId id,
string title,
IDockablePaneProvider provider
)
-
idUnique identifier for the new pane.
-
StringtitleString to use for the pane caption.
-
providerYour add-in's implementation of the IDockablePaneProvider interface.
public Result OnStartup(UIControlledApplication application)
{
// Create our pane provider and register it with the application
PaneProvider prov = new PaneProvider();
DockablePaneId id = new DockablePaneId(Guid.NewGuid());
application.RegisterDockablePane(id, "test", prov);
return Result.Succeeded;
}
-
Thrown if a dockable pane with identifier %id% has already been registered.