draw_polyline
Draw a lightweight polyline through a list of vertices, optionally closed, with specified width, layer, and color for AutoCAD geometry creation.
Instructions
Draw a lightweight polyline (LWPOLYLINE) through a sequence of vertices.
Args: vertices: List of [x, y] vertices (at least 2 points). closed: Whether the polyline should be closed. width: Constant global width of the polyline segments. layer: Optional layer name (auto-created if missing). color: Optional ACI color (1-255).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| width | No | ||
| closed | No | ||
| vertices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |