The Autodesk.Revit.UI.DockablePanes namespace provides classes for creating and managing dockable panes in Autodesk Revit.
The following classes are available in the Autodesk.Revit.UI.DockablePanes namespace:
This class provides data for creating dockable panes.
This class represents a dockable pane in Revit. It provides methods for setting the pane's visibility, title, and content.
This class provides a unique identifier for a dockable pane.
This class provides methods for creating and managing dockable panes.
To create a dockable pane in Revit, use the following steps:
public class MyDockablePaneProvider : DockablePaneProvider
{
// ...
}
public override void CreatePane(DockablePaneProviderData data)
{
// Create a new dockable pane
DockablePane myPane = new DockablePane(data);
// Set the pane's title and content
myPane.SetTitle("My Dockable Pane");
myPane.SetContent(new MyUserControl());
// Show the pane
myPane.Show();
}
MyDockablePaneProvider provider = new MyDockablePaneProvider();
DockablePaneProviderData data = new DockablePaneProviderData();
data.FrameworkElement = provider;
Application.RegisterDockablePane(data);
The Autodesk.Revit.UI.DockablePanes namespace provides classes for creating and managing dockable panes in Autodesk Revit. By using these classes, developers can create custom user interfaces that integrate with Revit's existing UI.