Duplicate attributes
duplicate_attributesCopies existing Archicad attributes of any type except Pen/Font to a new name, optionally changing fields, with collision handling and one undo step.
Instructions
Copies existing attributes of any type except Pen/Font (e.g. a pen set, a symbol fill, an MEP system, a model view option, a dimension standard, an operation profile, a composite) under a new name, optionally changing fields on the copy: each item is {source, name, folder?, ...fields of that type as in the create_* tools / modify_attributes}. Runs in one undo step. Returns {results: [{index, name, guid, created: true} | {..., existed: true} | {error}]} in input order; one failing item does not stop the others. Names are localized (Russian Archicad): look existing attributes up with get_attributes first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Attribute type to copy (every type except Pen and Font) | |
| ifExists | No | Name collision handling for all items: 'error' (default), 'skip' (reuse the existing attribute), 'update' (apply the fields to it) | |
| attributes | Yes |