draw_rectangle
Create an axis-aligned rectangle in a CAD drawing from two opposite corners, forming a closed polyline with optional layer, color, and linetype.
Instructions
Draw an axis-aligned rectangle (closed polyline) from two opposite corners.
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. | |
| corner1 | Yes | [x, y] or [x, y, z] | |
| corner2 | 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 | |||