draw_line
Draws a line between two 2D or 3D points in AutoCAD, with optional layer and ACI color settings.
Instructions
Draw a line between two 2D/3D points in AutoCAD 2027.
Args: start_point: [x, y] or [x, y, z] start coordinates. end_point: [x, y] or [x, y, z] end coordinates. layer: Optional layer name (automatically created if it does not exist). color: Optional AutoCAD Color Index (ACI 1=Red, 2=Yellow, 3=Green, 4=Cyan, 5=Blue, 6=Magenta, 7=White).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| end_point | Yes | ||
| start_point | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |