Accesses the Autodesk Revit database via RevitApiContext or UI session via RevitContext from Nice3point.Revit.Toolkit, and suppresses dialogs with BeginDialogSuppressionScope.
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.
Application.revit-command-and-application.RevitApiContext.BeginFailureSuppressionScope.Use RevitApiContext for database-level access.
var application = RevitApiContext.Application;
Use RevitContext for UIApplication, document, and view access only when a UI session is available.
var uiApplication = RevitContext.UiApplication;
var document = RevitContext.ActiveDocument;
var view = RevitContext.ActiveView;
using (RevitContext.BeginDialogSuppressionScope(TaskDialogResult.Ok))
{
LoadFamilies();
}
Overloads accept a result code, a TaskDialogResult, a MessageBoxResult, or a custom handler that overrides the result.
Confirm database-only code accesses RevitApiContext without calling the RevitContext.
RevitApiContext.Application.RevitContext, and nullable reads (ActiveDocument, ActiveView) are guarded.| Pitfall | Correct approach |
|---|---|
Using RevitContext in a test or Design Automation | Use RevitApiContext; it does not require a UI session. |
Assuming RevitContext.ActiveDocument is non-null | It is nullable; guard when no document is open. |
| Suppressing a transaction failure with a dialog scope | Use RevitApiContext.BeginFailureSuppressionScope. |
RevitContext 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-ui:revit-context-accessfrom 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-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-Other plugins' skills for the same job