SetZenonDynamicProperty@1
The SetZenonDynamicProperty@1 node writes a single value to the zenon dynamic-property tree of a project. The JSON value is coerced to the CLR type that zenon expects for the target property, then forwarded to the Editor AddIn.
Requires the zenon Editor AddIn to be running and connected.
Adapter Prerequisites
- zenon Adapter (Editor AddIn)
Node Configuration
For fields targetPath, targetValueWriteMode, and targetValueKind, see Overview.
transformations:
- type: SetZenonDynamicProperty@1
projectIdOrName: MyZenonProject
path: Description # dotted path to a writable leaf
type: String # String | Int | Double | Bool | Timestamp | Color
value: "New description" # literal value, or use valuePath
valuePath: $.request.value # optional: resolve from data context
targetPath: $.result
targetValueWriteMode: Overwrite
Value types
type | Accepted JSON value |
|---|---|
String | string |
Int | integer number |
Double | number |
Bool | boolean |
Timestamp | ISO-8601 string (UTC) |
Color | packed 32-bit int (e.g. 0x00RRGGBB) |
Output shape
{
"Success": true,
"ErrorCode": null,
"ErrorMessage": null
}
Error codes
ErrorCode | Meaning |
|---|---|
NotWritable | Property is read-only or the path is a bare collection head |
NotFound | Path does not exist in the project |
InvalidValue | Value could not be coerced or zenon rejected it |
ReadOnly | Property is marked read-only by zenon |
Canceled | Operation was canceled by zenon |
CoercionFailed | JSON value could not be coerced to the requested type |
Unknown | Unmapped error — see ErrorMessage for details |