2027 Method
Changes 0
M

UIControlledApplication.RegisterDockablePane

Description:
Adds a new dockable pane to the Revit user interface.
public void RegisterDockablePane(
	DockablePaneId id,
	string title,
	IDockablePaneProvider provider
)
  • id
    Unique identifier for the new pane.
  • String
    title
    String to use for the pane caption.
  • provider
    Your 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.