Thicken a sketch
onshape_thickenNeed to define wall thickness for a sketch? Convert your 2D sketch region into a shell body by specifying a wall thickness instead of solid depth.
Instructions
Give a sketch region a wall thickness instead of a solid depth.
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>",
"sketch": "<sketch>",
"thickness": "<thickness>"
},
"name": "onshape_thicken"
}
}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>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| name | No | Feature name shown in the tree (default "Thicken"). | |
| sketch | Yes | Feature id of the sketch to thicken. | |
| midplane | No | Grow symmetrically about the sketch plane. | |
| opposite | No | Thicken in the opposite direction. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| thickness | Yes | Thickness in inches. | |
| thickness_variable | No | Use a Part Studio variable for the thickness. |