set_dimension
Change a named driving dimension in millimeters, rebuild the model, and remeasure it to verify the parametric update and spot any broken features.
Instructions
Set a named driving dimension (e.g. 'D1@BlockExtrude') in mm, rebuild, and remeasure.
This is the parametric edit at the heart of the correction loop. The result's
broken_features names the features that fail since the change (a later cut
now off the part, a split whose bodies moved): fix or undo them first. Every
modelling tool returns its dimensions by role in dimensions. An angle (a
revolve, an angle mate) takes degrees; list_dimensions shows the unit. A
point's coordinate from the origin (a sketch's 'x3', 'y2') takes a sign,
-5 being across the origin; any other length is a size, refused below 0.
A value SolidWorks does not take (a dimension an equation drives, a size
of 0) is refused with the reason, and the part is left as it was.
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": {
"dimension_name": "<dimension_name>",
"value_mm": "<value_mm>"
},
"name": "set_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value_mm | Yes | ||
| dimension_name | Yes |