Commands  ›   ›  Select By Room

Select By Room

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document; roomNumber or roomName required.

After it runs

Returns { success, count, room, items }; optionally selection set.

When to use this

Don't use this when

Selecting by coordinates — use SelectByLocationCommand. Selecting by ID — use SelectByIdsCommand.

Inputs

NameKindTypeRequiredDefaultDescription
roomNumber config string no Room number (e.g. 101)
roomName config string no Room name (e.g. Office)
setSelection config bool no If true, set Revit selection to elements in room

Returns

NameTypeDescription
countintNumber of elements in room
itemsJSONLightweight list: id, category, name

What you'll see in the chat

on start
Finding elements in the specified room...
Searching room for elements...
thinking
Resolving room by number or name...
Collecting elements within room boundary...
Building result set...
on success
Found {count} element(s) in room {room}.
on failure
Could not find elements in room: {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_room
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

select by room · elements in room · room filter · room elements · room contents

Related commandsSelectByIdsCommand · SelectByLocationCommand
Pillar