Registers Autodesk Revit right-click context menu entries using Nice3point.Revit.Extensions fluent API. For adding menu items, submenus, and separators during application startup.
Ships in revit-ui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ConfigureContextMenu (from Nice3point.Revit.Extensions) wraps the raw context-menu registration into a fluent call.
Register the menu once during application startup.
revit-ribbon.AddMenuItem<TCommand> binds a menu item to a command type; AddSeparator inserts a divider; AddSubMenu nests a ContextMenu.
application.ConfigureContextMenu(menu =>
{
menu.AddMenuItem<AnalyzeCommand>("Analyze selection");
menu.AddSeparator();
var exportMenu = new ContextMenu();
exportMenu.AddMenuItem<ExportCommand>("Export selection");
menu.AddSubMenu("Export", exportMenu);
});
Use the ConfigureContextMenu(title, configuration) overload to title the menu group.
Right-click in Revit and confirm the items and submenu appear and each invokes its command.
AddMenuItem<TCommand>.ContextMenu and added with AddSubMenu.| Pitfall | Correct approach |
|---|---|
| Registering context menu items through the raw API | Use ConfigureContextMenu with AddMenuItem<TCommand>. |
Expecting AddSubMenu to take a lambda | Build a ContextMenu and pass it to AddSubMenu(name, subMenu). |
ConfigureContextMenu not found | The Nice3point.Revit.Extensions package is not referenced. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/revit-ui:revit-context-menufrom revit-ui
npx claudepluginhub nice3point/revit-skills --plugin revit-ui7 skills in this plugin
/revit-command-and-applicationBuild Autodesk Revit add-in entry points with Nice3point.Revit.Toolkit base classes, not raw IExternalCommand/IExternalApplication interfaces. USE FOR: authoring an external command or application with a simplified Execute()/OnStartup() override, optional OnShutdown() override, ready context properties, and automatic dependency resolution. DO NOT USE FOR: dispatching API work from code that runs outside the Revit API context (use revit-external-events).
/revit-context-accessAccess the Autodesk Revit database application through RevitApiContext or an active UI session through RevitContext from Nice3point.Revit.Toolkit, and suppress dialogs. USE FOR: reading Application, the current UiApplication/ActiveDocument/ActiveView without a commandData, or suppressing TaskDialog and message boxes with BeginDialogSuppressionScope. DO NOT USE FOR: suppressing expected Revit warnings and failures during a transaction.
/revit-dockable-paneRegister a WPF dockable pane in the Autodesk Revit UI with Nice3point.Revit.Toolkit DockablePaneProvider. USE FOR: registering a dockable pane and its initial dock state during application startup with the fluent API.
/revit-external-eventsRun Autodesk Revit API work from code that executes outside the Revit API context, using Nice3point.Revit.Toolkit external events. USE FOR: raising API work from a modeless window, background thread, or other non-API-context callback via the toolkit's external events or the [ExternalEvent] source generator. DO NOT USE FOR: code that already runs in the Revit API context — call the API directly.
/revit-ribbonBuild an Autodesk Revit ribbon with the Nice3point.Revit.Extensions fluent panel and button API, not raw RibbonPanel and PushButtonData calls. USE FOR: creating ribbon panels, push/pulldown/split buttons, stacked rows, icons, tooltips, shortcuts, and availability controllers in an application's OnStartup. DO NOT USE FOR: right-click context menu entries (use revit-context-menu).
/revit-selection-filterFilter which elements and references a user can pick in Autodesk Revit UI with the Nice3point.Revit.Toolkit SelectionConfiguration, not a custom ISelectionFilter. USE FOR: constraining an interactive Selection.PickObject/PickObjects with a fluent Allow.Element / Allow.Reference filter. DO NOT USE FOR: headless API callbacks such as family load or duplicate-type options (use Toolkit option handlers like FamilyLoadOptions).
Other plugins' skills for the same job