Create Rectangle
entity_create_rectangleDraw a closed rectangular polyline between two corner points in AutoCAD, with optional color and layer assignments.
Instructions
Create a closed rectangular polyline between two corner points.
Convenience wrapper around entity_create_polyline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "entity_create_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | First corner X | |
| x2 | Yes | Opposite corner X | |
| y1 | Yes | First corner Y | |
| y2 | Yes | Opposite corner Y | |
| color | No | ACI color code | |
| layer | No | Layer name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||