Commands  ›   ›  Select By Service Type

Select By Service Type

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document and view must be available. Elements in scope must have service type parameters populated.

After it runs

Selection is replaced with matching element IDs. Returns JSON with serviceType, scope, totalSearched, totalSelected, and breakdown.

When to use this

Don't use this when

Generic deep parameter search across all fields (use SelectByParameterCommand). Searching by Revit MEP system classification (use SelectBySystemTypeCommand). Simple category selection (use SelectByCategoryCommand).

Inputs

NameKindTypeRequiredDefaultDescription
serviceType config string no Service type text to match
scope config string no "view" view (default) or model

Returns

NameTypeDescription
SelectionElementId[]Selected element IDs
SummaryJSONSelection summary with breakdown

Decision flow

check: parameters.serviceType → required, fail if empty
check: parameters.scope == "model" → search entire model
default: search current view only
iterate: each element → check "Service Type" / "System Type" params for contains match

What you'll see in the chat

on start
Selecting elements by service type parameter...
Searching for service type matches in elements...
Looking for elements with matching service type...
thinking
Building element collector...
Checking service type parameters on each element...
Filtering by parameter value match...
Applying selection to model...
on success
Selected {totalSelected} elements with service type matching "{serviceType}" from {scope}
on failure
Service type selection 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_service_type
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

select by service type · service type selection · select service · select by service · select mep service
Patterns: select * service type · select * by service type · select service *

Related commandsSelectBySystemTypeCommand · SelectByParameterCommand · FilterSelectionCommand
Pillar