Revolve a sketch
onshape_revolveRevolve a sketch profile around an axis to create a 3D solid in Onshape.
Instructions
Revolve a sketch profile around an axis. With no axis given, the sketch's own construction line is used (see onshape_sketch_circle_axis); otherwise pass axis_ids or an axis query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | NEW makes a new body; ADD/REMOVE/INTERSECT combine with existing bodies (default NEW). | |
| 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>. | |
| axis | No | FeatureScript query selecting the axis. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| name | No | Feature name shown in the tree (default "Revolve"). | |
| type | No | FULL revolves all the way around (default FULL when an axis is given). | |
| angle | No | Revolve angle in degrees (default 360). | |
| sketch | Yes | Feature id of the sketch holding the profile. | |
| axis_ids | No | Deterministic ids of the axis entity. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). |