draw_polygon
Draws a regular polygon in AutoCAD by specifying center, radius, and sides, with options for inscribed radius and rotation angle for precise placement.
Instructions
Правильный многоугольник: центр, радиус r, число сторон sides. inscribed=True: r до вершин, False: r до середины сторон. rotation: угол первой вершины (90 = вершина вверху).
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": {
"cx": "<cx>",
"cy": "<cy>",
"r": "<r>",
"sides": "<sides>"
},
"name": "draw_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| r | Yes | ||
| cx | Yes | ||
| cy | Yes | ||
| layer | No | 0 | |
| sides | Yes | ||
| rotation | No | ||
| inscribed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |