draw_polygon
Draws a regular polygon as a closed polyline in AutoCAD using center, radius, and sides, with optional color, layer, rotation, and linetype.
Instructions
Draw a regular polygon as a closed polyline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| sides | Yes | ||
| center | Yes | [x, y] or [x, y, z] | |
| radius | Yes | Circumscribed radius (center to vertex) | |
| linetype | No | Linetype name, e.g. CONTINUOUS, DASHED, CENTER, HIDDEN | |
| rotation | No | Angle of the first vertex in degrees |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||