Rotate elements
rotate_elementsRotates any Archicad elements in plan around a specified center point. Use copy=true to create polar arrays, keeping originals and generating rotated copies.
Instructions
Rotates elements of ANY type in plan around a centre point (Edit > Move > Rotate). Angle in DEGREES, positive = counter-clockwise. Without center the centre of the elements' combined bounding box is used (reported in warnings). With copy=true the originals stay and count copies are made at k × angle (polar array, e.g. 6 chairs around a table: angle 60, count 5, copy true). Returns move-style results, or copy-style results ({results: [{guid, copies}], createdCount, additionalCreated?}) when copy=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | true = keep the originals and transform copies (default false = transform the originals) | |
| angle | Yes | Rotation angle in degrees; positive = counter-clockwise, negative = clockwise | |
| count | No | Only with copy=true: number of rotated copies, copy k rotated by k × angle (default 1) | |
| center | No | Pivot point in meters (default: centre of the elements' bounding box) | |
| 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. | |
| 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. |