Resize (scale) elements
resize_elementsScale Archicad plan elements around a chosen center by a ratio: 2 doubles size, 0.5 halves, leaving model heights unchanged.
Instructions
Scales elements in plan by ratio around a centre point (Edit > Reshape > Resize): 2 = double size, 0.5 = half. Default centre: the elements' bounding-box centre. Model element heights are not scaled; text/labels scale according to Archicad rules. 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 |
|---|---|---|---|
| copy | No | true = keep the originals and transform copies (default false = transform the originals) | |
| ratio | Yes | Scale factor (> 0, not 1) | |
| center | No | Fixed point of the scaling in meters (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. | |
| 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. |