acad_create_layer
Creates an AutoCAD layer with a specified name and optional color index, linetype, lineweight, and on/frozen/locked status to organize drawing geometry.
Instructions
Create a layer. color_index is an AutoCAD colour (1 red, 2 yellow, 3 green, 5 blue, 7 white/black). lineweight_hundredths_mm uses AutoCAD standard values (e.g. 25 = 0.25 mm). Linetype must already be loaded.
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": "acad_create_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| name | Yes | ||
| frozen | No | ||
| locked | No | ||
| linetype | No | ||
| color_index | No | ||
| lineweight_hundredths_mm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||