Builds Autodesk Revit add-in entry points using Nice3point.Revit.Toolkit base classes instead of raw IExternalCommand/IExternalApplication interfaces. Provides simplified Execute()/OnStartup() overrides, ready context properties, and automatic dependency resolution.
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.
Derive add-in entry points from the Nice3point.Revit.Toolkit base classes.
They replace the raw interface boilerplate (the full Execute(commandData, ref message, elements) signature, manual assembly resolution) with a simplified override and ready-made context properties.
IExternalCommand, IExternalApplication, or IExternalDBApplication entry point.OnStartup — that is revit-ribbon.revit-external-events.Override Execute() and access the context through the inherited Application property, not through commandData.
[Transaction(TransactionMode.Manual)]
public class DeleteWallsCommand : ExternalCommand
{
public override void Execute()
{
var document = Application.ActiveUIDocument.Document;
}
}
ExternalCommand exposes high-level Application, View, JournalData, and ElementSet properties that IExternalCommand provides.
Result defaults to Succeeded; set Result and ErrorMessage only when the command must return a canceled or failed outcome.
public class Application : ExternalApplication
{
public override void OnStartup()
{
var panel = Application.CreatePanel("Commands", "RevitAddin");
panel.AddPushButton<DeleteWallsCommand>("Delete walls");
}
}
Use ExternalDBApplication for a database-only application.
Override OnShutdown() only when the application has session cleanup to perform; it is optional.
The ribbon helpers (CreatePanel, AddPushButton<T>) come from Nice3point.Revit.Extensions — see revit-ribbon.
Derive from AsyncExternalCommand and override ExecuteAsync(), or from AsyncExternalApplication and override OnStartupAsync()/OnShutdownAsync().
The base class pumps the message loop on the Revit main thread.
The UI remains responsive during an await, and the continuation runs in the API context without an external event.
public class Application : AsyncExternalApplication
{
public override async Task OnStartupAsync()
{
var settings = await LoadSettingsAsync(); // long-running work; the UI remains responsive
CreateRibbon(settings);
}
}
The base classes open an assembly resolve scope automatically.
The runtime loads add-in dependencies from the add-in folder without a manual AssemblyResolve handler.
For dependencies loaded outside an entry point, open a scope explicitly with ResolveHelper.BeginAssemblyResolveScope.
Test the observable model behavior on the Revit thread.
Set Result only when the command must cancel or fail.
commandData unpacking.OnShutdown() only when it has session cleanup to perform.AsyncExternalCommand.Result and ErrorMessage are set only for a canceled or failed command.| Pitfall | Correct approach |
|---|---|
Implementing Execute(commandData, ref message, elements) manually | Derive from ExternalCommand and override Execute(). |
Manual AppDomain.AssemblyResolve for add-in dependencies | The base classes resolve dependencies automatically; outside an entry point, open a ResolveHelper.BeginAssemblyResolveScope. |
| Blocking the UI in a long command | Use AsyncExternalCommand and ExecuteAsync(). |
ExternalCommand not found | The Nice3point.Revit.Toolkit package is not referenced. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
revit, add-in, external-command, external-application, nice3point
7 skills in this plugin
/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-context-menuAdd Autodesk Revit right-click context menu entries with the Nice3point.Revit.Extensions fluent API. USE FOR: registering context menu items, submenus, and separators bound to command classes during application startup. DO NOT USE FOR: ribbon panels and buttons (use revit-ribbon).
/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).
/revit-ui:revit-command-and-applicationfrom revit-ui
npx claudepluginhub nice3point/revit-skills --plugin revit-uiOther plugins' skills for the same job