Mirror elements
mirror_elementsMirrors any Archicad element across a line or axis, with option to create copies. Reports errors for locked or hidden elements.
Instructions
Mirrors elements of ANY type across a line in plan (Edit > Move > Mirror). Give the mirror line either by two points (axisStart, axisEnd) or as axis: 'Vertical' | 'Horizontal' through through (default: centre of the elements' bounding box). copy=true keeps the originals and creates mirrored copies (e.g. the other half of a symmetric plan). Mirroring flips wall/door opening sides and object handedness like Archicad does. Returns {results: [{guid, newGuid?, warning?} | {guid, error}], warnings?} in input order (a 'warning' on an item means Archicad may have ignored it); with copy=true the copy-style result {results: [{guid, copies: [new GUIDs]}], createdCount, additionalCreated?}. Locked elements, elements on locked/hidden layers, hotlinked elements and elements outside your Teamwork workspace are reported with an actionable error instead of being edited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | Alternative to axisStart/axisEnd: a vertical (parallel to Y) or horizontal (parallel to X) mirror line | |
| copy | No | true = keep the originals and transform copies (default false = transform the originals) | |
| axisEnd | No | Second point of the mirror line (with axisStart) | |
| through | No | Point the vertical/horizontal `axis` passes through (default: bounding-box centre) | |
| elements | Yes | Elements to edit: GUID strings (or {guid}) of any element type, e.g. from get_element_details / element search tools. A group GUID stands for all elements of that group. | |
| axisStart | No | First point of the mirror line (with axisEnd) | |
| includeGroupMembers | No | Default false: ONLY the listed elements are affected even when they belong to groups (Suspend Groups is switched on for the duration of the call and restored afterwards). true: all members of their (top-level) groups are affected as well. |