update_feature
Modify parameters on an existing Onshape Part Studio feature to iterate CAD designs. Adjust dimensional expressions or boolean/enum values by parameter ID and check regeneration status.
Instructions
Modify parameters on an existing Part Studio feature (for iteration: 'change the extrude depth from 10mm to 15mm', 'swap the fillet radius to 2mm', 'flip oppositeDirection'). Updates are keyed by the feature's parameterId (e.g. 'depth', 'radius', 'operationType', 'oppositeDirection'). For quantity params, set expression ("15 mm", "0.5 in", "90 deg"). For boolean/enum params, set value. Returns the standard {ok, status, feature_id, ...} contract so you can tell if the patched feature still regenerates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | Per-parameter patches to apply | |
| elementId | Yes | Part Studio element ID | |
| featureId | Yes | ID of the feature to update | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID |