update_scad_parameter
Update a numeric parameter in OpenSCAD code without regenerating the entire model. Modify dimensions by replacing variable values directly.
Instructions
Update a parameter value in OpenSCAD code.
Finds the named variable declaration and replaces its value,
preserving comments and formatting. Use this to tweak dimensions
without regenerating the entire model.
Args:
scad_code: OpenSCAD source code string.
parameter_name: Name of the variable to update.
new_value: New numeric value for the parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_value | Yes | ||
| scad_code | Yes | ||
| parameter_name | Yes |