Elements related to zones
get_elements_related_to_zonesRetrieve walls, doors, windows, slabs, and other Archicad elements that bound or belong to specified zones, grouped by type for room data checks.
Instructions
For each zone (room), returns the elements that bound or belong to it (walls, columns, doors, windows, slabs, objects... as Archicad relates them), grouped by type. Output: {zones: [{zone, total, elements: {Wall: [guid...], Door: [...]}} | {zone, error}]}. Get zone GUIDs with list_elements {types: ['Zone']}. The passed GUIDs must be zones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zones | Yes | Zone GUIDs | |
| groupByType | No | Group the related elements by type (default true); false returns a flat GUID list | |
| elementTypes | No | Only related elements of these types (default: all types) |