Create Line
entity_create_lineCreate a line in AutoCAD from start and end coordinates. Returns entity handle for later reference.
Instructions
Create a line from (x1,y1) to (x2,y2). Returns entity info with handle.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "entity_create_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate | |
| x2 | Yes | End X coordinate | |
| y1 | Yes | Start Y coordinate | |
| y2 | Yes | End Y coordinate | |
| z1 | No | Start Z coordinate (default 0) | |
| z2 | No | End Z coordinate (default 0) | |
| color | No | ACI color code 1-255, 256=ByLayer, 0=ByBlock | |
| layer | No | Layer name (default: current layer) | |
| linetype | No | Linetype name (e.g. 'DASHED', 'CENTER') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||