acad_add_line
Draws a line in model space using start and end [x, y] or [x, y, z] coordinates, then returns the new entity handle for markups and dimensions.
Instructions
Add a line in model space. start and end are [x, y] or [x, y, z] in drawing units (inches). Returns the new entity's handle, which markups and dimensions use.
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": {
"start": "<start>",
"end": "<end>"
},
"name": "acad_add_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| layer | No | ||
| start | Yes | ||
| color_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||