set_layer
Configure or create an AutoCAD layer and set its visibility, freeze, lock, color, linetype, lineweight, and current status in one call.
Instructions
Настроить слой (создаётся, если нет): on (вкл/выкл), frozen, locked, color (ACI), linetype (DASHED, CENTER, HIDDEN...: подгружается сам), lineweight (мм, напр. 0.5), current=True: сделать текущим.
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": {
"name": "<name>"
},
"name": "set_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| name | Yes | ||
| color | No | ||
| frozen | No | ||
| locked | No | ||
| current | No | ||
| linetype | No | ||
| lineweight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |