Add Sketch Polygon
add_polygonDraw a regular polygon in an open sketch from its center, radius, and side count to create nuts, hex bosses, or pockets.
Instructions
Draw a regular polygon (e.g. a hexagon) in the open sketch from its centre, radius and number of sides.
Use it for nuts, hex bosses and pockets. Needs: an open sketch
(create_sketch). Changes: adds the polygon's sides. Returns: polygon with
id, center, radius, sides and angle. A diameter dimension
(add_sketch_dimension) on its id sizes it by the circle drawn inside it.
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": {
"input_data": "<input_data>"
},
"name": "add_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | A mapping: `center_x`, `center_y` (mm, default 0), `radius` (mm, circumscribed, default 10), `sides` (default 6) and `angle` (degrees the first corner is turned from +x, default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||