parameter_create
Creates ordered Fusion user parameters from expressions or numbers, validating names first and rolling back all if any creation fails.
Instructions
Create user parameters in order (later ones may use earlier ones). All or nothing: names are checked first (pattern, not existing, no duplicates) and a Fusion error on any item removes the ones already created.
expression is a Fusion expression string ("40 mm", "width / 2") or a number in
unit (default mm): 40 -> "40 mm". Use unit "deg" for angles and "" for counts.
Returns {"parameters": [...as in parameter_list], "warnings": [features that newly show a warning]}.
Example: parameter_create(parameters=[{"name": "width", "expression": 40}, {"name": "half", "expression": "width / 2"}]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | Yes |