Modify attributes
modify_attributesChange existing Archicad attributes of any supported type in a single undo step, including renaming, moving, and editing fields for layers, surfaces, pens, composites, and more.
Instructions
Changes existing attributes of any type in one undo step. Each item is {type, attribute (name/index/{guid}), name? (rename), folder? (move), ...fields to change} with the same field names as get_attributes returns and the create_* tools accept; only the given fields change. Examples: {type: 'Layer', attribute: 'Мебель', locked: true}; {type: 'Surface', attribute: 'Red paint', color: '#AA0000'}; {type: 'Composite', attribute: 'Wall 380', skins: [...]}; {type: 'Pen', attribute: 12, color: '#FF0000', width: 0.5}; {type: 'LayerCombination', attribute: 'Plan', base: 'current'} (re-captures the current layer states). Fonts cannot be modified. Returns {results: [{index, name, guid} | {error}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undoName | No | Name of the undo step | |
| attributes | Yes |