edit_sketch_dimension
Modify a sketch dimension's expression using its parameter name, then validate design health to catch broken downstream features. Solve dimensional changes by redefining values directly.
Instructions
Change a sketch dimension's expression by parameter name (e.g. d278).
Triggers design.computeAll() before returning. After calling this, run
audit_feature_health to check whether the edit broke any downstream
features (very common for fillets when their target edges move; see G11).
On dim_not_found, the response includes the available dimensions in the sketch so the agent can correct course without another tool call.
Args:
sketch: Sketch name (will search root + every sub-component).
dim_name: Parameter name of the dimension (use probe_sketch_dimensions
to find these).
new_expression: New expression as a string. Can be a numeric literal
("20 mm"), a user param reference ("oval_x"), or an expression
("oval_x / 2 + 1 mm"). Units required if not a bare expression.
component_name: Optional disambiguation when the sketch name exists in
multiple components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | ||
| dim_name | Yes | ||
| component_name | No | ||
| new_expression | Yes |