sketch_dimension
Add driving or driven sketch dimensions in one all-or-nothing call to make sizes exact and parametric, with numeric values, expressions, and named parameters.
Instructions
Add driving or driven dimensions in order, all or nothing — this is how sizes become exact and parametric.
value: a number is mm (degrees for angular) -> "25 mm"; a string is a Fusion
expression kept as is ("plate_w * 0.6", "wall + 2 mm"); invalid expressions fail with
INVALID_PARAMS before anything is created. parameter_name renames the dimension's
parameter so later dimensions (in this call too) and parameter_update can use it.
driven=true makes a reference dimension that only measures (no value).
Types: distance (line, or point1 + point2; orientation aligned|horizontal|vertical) |
offset (line, entity: parallel line or point) | radial / diameter (curve) | angular
(line1, line2; text_at picks the measured quadrant) | ellipse_major / ellipse_minor
(ellipse).
Returns {"dimensions": [{ref, type, value, unit, expression, parameter, driving}], "status", "profiles"}.
Example: sketch_dimension(sketch=, dimensions=[{"type": "distance", "line": , "value": 100, "parameter_name": "plate_w"}, {"type": "radial", "curve": , "value": "plate_w / 20"}]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit of numeric `text_at` | mm |
| sketch | Yes | Sketch ref (from sketch_create) | |
| dimensions | Yes | ||
| return_profiles | No | Add the current profiles to the result (false = faster) |