Get connected elements
get_connected_elementsFinds all elements attached to or hosted by given Archicad elements—windows, doors, skylights, openings, labels—and their owners. Optionally returns solid operations and trims.
Instructions
Elements attached to or hosted by each given element: windows/doors of a wall, skylights of a roof/shell, openings cut into walls/slabs/beams, labels attached to the element; plus the owner/host (wall of a door, roof of a skylight, element of a label, curtain wall of a panel...). Optionally solid element operations (operators cutting this element / targets it cuts) and roof/shell trims. Output: [{guid, type, connectedCount, connected: {Window: [guid...], Door: [...], ...}, owner?, solidOperations?, trims?}]. For zone boundaries and wall joins use get_element_relations; for curtain wall/stair/railing parts use get_subelements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Connected element types to look for. Default: Window, Door, Skylight, Opening, Label | |
| elements | Yes | Element GUIDs | |
| includeOwner | No | Return the host/owner element. Default true | |
| includeTrims | No | Return trim relations (elements trimmed to roofs/shells). Default false | |
| includeTypes | No | Return connected elements as {guid, type} instead of plain GUIDs. Default false | |
| includeSolidOperations | No | Return solid element operation links. Default false |