update_scad_parameter
Update a numeric parameter in OpenSCAD code by finding its declaration and replacing the value, preserving comments and formatting for precise model adjustments.
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 |