layer_update_state
Update allowlisted layer state—visibility, frozen, locked, color, linetype, or lineweight—while unsafe changes to the current layer are refused before mutation.
Instructions
Update allowlisted layer state such as on/off, frozen, locked, color, linetype, or lineweight; unsafe changes to the current layer are refused before mutation.
Side-effects: Modifies layer table properties. Disambiguation: Use to change layer visibility or styling across all entities on that layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of existing layer to update | |
| color | No | AutoCAD Color Index (ACI 1-255) | |
| is_on | No | Layer visibility on/off flag | |
| linetype | No | Linetype name to assign (e.g. 'Continuous', 'DASHED') | |
| is_frozen | No | Layer frozen state (cannot freeze current layer) | |
| is_locked | No | Layer locked state against edits | |
| lineweight | No | Lineweight in 1/100 mm (e.g. 25 = 0.25mm) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||