Cut a hole
onshape_holeCreate a hole by extruding a circular sketch as a cut through the body. Use for removing material with a sketched circle.
Instructions
Extrude a sketch as a cut (op=REMOVE). Sketch a circle first, then cut it through the body.
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 "Hole"). | |
| depth | Yes | Cut depth in inches; make it deeper than the body to cut through. | |
| sketch | Yes | Feature id of the sketch to cut with. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| depth_variable | No | Use a Part Studio variable for the depth. |