Filters interactive element/reference picks in Autodesk Revit using Nice3point.Toolkit's SelectionConfiguration with fluent lambdas, avoiding custom ISelectionFilter classes.
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.
Selection.PickObject takes an ISelectionFilter that constrains what the user may pick.
SelectionConfiguration (from Nice3point.Revit.Toolkit) builds that filter from two lambdas without a custom class.
It applies to an interactive pick and requires the Revit UI.
FamilyLoadOptions.Allow.Element gates which elements are pickable; Allow.Reference gates which references (faces, edges, points).
Set either or both, then pass configuration.Filter to the pick call.
Each method returns the configuration, and the calls chain.
var configuration = new SelectionConfiguration()
.Allow.Element(element => element.Category.Id.IsCategory(BuiltInCategory.OST_Walls))
.Allow.Reference((reference, position) => false);
var picked = uiDocument.Selection.PickObject(ObjectType.Element, configuration.Filter);
Run the command and confirm only the intended elements or references highlight and accept a pick.
SelectionConfiguration, not a custom ISelectionFilter.Allow.Element/Allow.Reference express the rule with a lambda, not a new class.| Pitfall | Correct approach |
|---|---|
A bespoke ISelectionFilter for a category check | Use SelectionConfiguration().Allow.Element(...). |
| Filtering references with an element-only filter | Add Allow.Reference((reference, position) => ...). |
SelectionConfiguration 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
7 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-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-ui:revit-selection-filterfrom revit-ui
npx claudepluginhub nice3point/revit-skills --plugin revit-uiOther plugins' skills for the same job