set_dimension
Edits a named driving dimension in millimeters, rebuilds the model, and remeasures geometry; rejects invalid or equation-driven values without changing the part.
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. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value_mm | Yes | ||
| dimension_name | Yes |