Set parameter
set_parameterModify a whitelisted dimension or radius on an existing FreeCAD box or cylinder by setting a positive value in millimetres, with the document locked during the change.
Instructions
Change a whitelisted parameter on an existing object. Currently whitelisted properties are:
Box: Length, Width, Height
Cylinder: Radius, Height The value must be a positive number (millimetres). The document is locked exclusively during the operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Object name inside FreeCAD. | |
| type | Yes | FreeCAD TypeId, e.g. 'Part::Box'. | |
| width | No | Width in mm. | |
| height | No | Height in mm. | |
| length | No | Length in mm. | |
| radius | No | Radius in mm (cylinders). | |
| volume | No | Shape.Volume if available. | |
| shape_type | No | Shape.ShapeType if available (e.g. 'Solid'). |