Select All Instances
Coming soon
Active document must be open. Either familyName parameter must be provided, or user must have a FamilyInstance selected.
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
- User selects one socket and says "select all of these in the model".
- User wants to count all instances of a specific family type across all levels.
- User wants to bulk-edit all instances of a specific family.
Selecting in current view only (use SelectByFamilyNameCommand with scope=view). Category-wide selection (use SelectByCategoryCommand). Filtering an existing selection (use FilterSelectionCommand).
Inputs
| Name | Kind | Type | Required | Default | Description |
|---|---|---|---|---|---|
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
| Name | Type | Description |
|---|---|---|
Selection | ElementId[] | All matching instance IDs |
Summary | JSON | Count 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
Finding every instance of this family...
Scanning entire model for instances...
Filtering by family and type...
Setting Revit selection...
REST API
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
| Related commands | SelectByCategoryCommand · SelectByFamilyNameCommand · FilterSelectionCommand |
|---|---|
| Pillar |