Commands  ›   ›  Select All Instances

Select All Instances

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. Either familyName parameter must be provided, or user must have a FamilyInstance selected.

After it runs

Revit selection is replaced with ALL instances of the matching family/type in the entire model. Returns JSON with totalSelected and breakdown by level and type.

When to use this

Don't use this when

Selecting in current view only (use SelectByFamilyNameCommand with scope=view). Category-wide selection (use SelectByCategoryCommand). Filtering an existing selection (use FilterSelectionCommand).

Inputs

NameKindTypeRequiredDefaultDescription
familyName config string no Family name to match (or leave empty to use current selection)
typeName config string no Optional type name for exact match

Returns

NameTypeDescription
SelectionElementId[]All matching instance IDs
SummaryJSONCount and breakdown by level

Decision flow

check: parameters.familyName → use directly
check: selection has FamilyInstance → derive family/type from it
check: parameters.typeName → if set, match type too (not just family)
default: match family name only (all types)

What you'll see in the chat

on start
Selecting all matching instances in the model...
Finding every instance of this family...
thinking
Resolving family name...
Scanning entire model for instances...
Filtering by family and type...
Setting Revit selection...
on success
Selected {totalSelected} instances of {familyName} across the model.
on failure
Could not select instances: {error}

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/select_all_instances
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

select all instances · all in model · all of this family · same family · select all same · every instance
Patterns: select all instances * · select all * in model · select every * · select all of these

Related commandsSelectByCategoryCommand · SelectByFamilyNameCommand · FilterSelectionCommand
Pillar