Set property
set_propertyUpdates one property on the currently selected SimWorks object using an exact property name and SI value; switch to design layout and retry if it is inactive.
Instructions
Set one property on the currently selected object(s).
Prefer calling directly when you know the exact SimWorks property name.
Numbers are SI only. On failure, get_info(kind="property"), then retry only
the failed property — do not invent names from similar software. If you set name,
remember the new name for later object_action select (use Parent::Child when nested).
After a simulation finishes, many properties can only be set in design
layout. If set fails with a design-layout / inactive message, call
switch_layout(layout="design") (confirm first if results would be lost),
then retry — do not re-add objects to work around this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Optional selection index when multiple objects are selected (1 = uppermost). | |
| value | Yes | New value. Numbers must be SI (m, s, Hz) with no unit suffix. Bool as true/false. Strings for materials/enums. | |
| property_name | Yes | Exact SimWorks property name on the selected object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |