Sketch a circle with a revolve axis
onshape_sketch_circle_axisCreates a sketch with a circle profile and a construction line axis, enabling a revolve operation to generate a torus or ring.
Instructions
Add a sketch with a circle profile and a construction line. onshape_revolve spins the profile around that construction line, which is how you get a torus or a ring.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>",
"center": "<center>",
"radius": "<radius>",
"axis_start": "<axis_start>",
"axis_end": "<axis_end>"
},
"name": "onshape_sketch_circle_axis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| name | No | Feature name shown in the tree (default "Sketch circle and axis"). | |
| plane | No | Default plane to sketch on (default Front). | |
| center | Yes | Circle centre. As [x, y] inches or "x,y". | |
| radius | Yes | Radius in inches. | |
| axis_end | Yes | Axis end. As [x, y] inches or "x,y". | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| axis_start | Yes | Axis start. As [x, y] inches or "x,y". |