Add Layer
add_layerAdds or updates a layer in a DXF drawing, setting color, linetype, lineweight, and description for CAD organization.
Instructions
Add a new layer or update an existing layer in a DXF drawing.
color: ACI number (1-255), color name ('red', 'cyan', 'green'), or hex ('#FF0000').
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": {
"file_path": "<file_path>",
"name": "<name>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No | ||
| linetype | No | CONTINUOUS | |
| file_path | Yes | ||
| lineweight | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||