set_params
Change default dimension values in a build123d script in place while preserving all other file content, optionally update a variant, rebuild, and report resulting size or volume changes.
Instructions
Change Dims values in the script in place, leaving every other character of the file as it was: values {"FIELD": new value, ...} replaces each field's default (only literal defaults: a default computed by an expression such as hole_comp(file) is refused with the reason; so are unknown fields, derived @property values and values of the wrong type). variant: change (or add) that variant's override in VARIANTS instead of the default. rebuild (default true): build before and after (the build cache makes "before" quick) and report what changed per piece: size and volume; parts: only those pieces. Saved like write_part (size limit, must compile). If the new build fails, the result has the diagnosis and the call to undo it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| parts | No | ||
| values | Yes | ||
| rebuild | No | ||
| variant | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |