Create layer combinations
create_layer_combinationsCreates Archicad layer combinations that save layer visibility, lock, wireframe, and intersection states, applying ordered per-layer overrides in one undo step.
Instructions
Creates layer combinations (saved sets of layer visibility/lock/wireframe/intersection states). By default a new combination captures the CURRENT state of every layer, then 'layers' overrides are applied in order, e.g. {name: 'Plan - structure', base: 'allHidden', layers: [{match: 'Structural*', visible: true}]}. Activate one with apply_layer_combination. 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 |
|---|---|---|---|
| ifExists | No | Name collision handling for all items: 'error' (default), 'skip' (reuse the existing attribute), 'update' (apply the fields to it) | |
| layerCombinations | Yes |