Set layer states
set_layer_statesAdjust Archicad layer visibility, locking, wireframe, and intersection groups directly in active layer settings; batch changes run in order with one undo, without altering saved combinations.
Instructions
Shows/hides, locks/unlocks, switches wireframe or the intersection group of layers directly (the active layer settings; saved combinations are not changed — use modify_attributes type LayerCombination for those). Items run in order in one undo step, so 'isolate' works as [{match: '*', hidden: true}, {layer: 'Стены', visible: true}]. The Archicad layer cannot be hidden/locked (skipped for patterns). Returns per item {changed: [{index, name}], changedCount, alreadyInStateCount, skipped?} | {error}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layers": "<layers>"
},
"name": "set_layer_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | Yes | ||
| undoName | No |