draw_line
Create a straight line segment by specifying start and end coordinates, with optional color, layer, and linetype, to add precise geometry to CAD drawings.
Instructions
Draw a straight line segment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | [x, y] or [x, y, z] | |
| color | No | ACI 0-256 or name (red, yellow, green, cyan, blue, magenta, white, bylayer) | |
| layer | No | Target layer (created if missing). Default: current layer. | |
| start | Yes | [x, y] or [x, y, z] | |
| linetype | No | Linetype name, e.g. CONTINUOUS, DASHED, CENTER, HIDDEN |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||