Commands  ›   ›  Select By Family Name

Select By Family Name

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open with a valid active view.

After it runs

Revit selection is replaced with all elements whose family/type/element name contains the search term. Returns JSON with totalSelected, totalSearched, and breakdown by family:type.

When to use this

Don't use this when

Selecting by category (use SelectByCategoryCommand — faster). Deep parameter value search (use SelectByParameterCommand). Filtering an existing selection (use FilterSelectionCommand).

Inputs

NameKindTypeRequiredDefaultDescription
search config string no Text to search for in family/type/element name
category config string no Optional Revit category to narrow search
scope config string no "view" view (default) or model

Returns

NameTypeDescription
SelectionElementId[]Selected element IDs
SummaryJSONBreakdown by family:type and count

Decision flow

check: parameters.search → required, fail if empty
check: parameters.category → optional, narrows collector for performance
check: parameters.scope == "model" → search entire model
default: search current view only

What you'll see in the chat

on start
Searching for elements by family name...
Looking for families matching your search term...
Starting family name selection...
thinking
Building element collector...
Filtering by family, type, and element name...
Applying selection to model...
on success
Selected {totalSelected} elements matching "{searchTerm}" from {scope}
on failure
Family name search failed: {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_by_family_name
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

select by family · select by name · find family · search family · select by type · filter family
Patterns: select * family * · find * family * · select * named *

Related commandsSelectByCategoryCommand · SelectByParameterCommand · FilterSelectionCommand
Pillar