sketch_polygon
Draws a regular polygon inscribed in a circle with a specified diameter in a SolidWorks sketch, using sides plus optional center and rotation to place the geometry.
Instructions
Draws a regular polygon (e.g. hexagon: sides=6) inscribed in a circle of the given diameter (mm): the vertices lie on the circle (for a hexagon, the diameter is the distance across corners).
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": {
"sides": "<sides>",
"circumscribed_diameter_mm": "<circumscribed_diameter_mm>"
},
"name": "sketch_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sides | Yes | Number of sides (>= 3) | |
| center_x_mm | No | ||
| center_y_mm | No | ||
| rotation_deg | No | ||
| circumscribed_diameter_mm | Yes | Diameter in mm of the circle through the vertices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |