SetUserProperty

Sets the value of a user property specified within the first parameter

Function

void SetUserProperty(userPropertyName: string, value: object);

Parameters

Name Type Description
userPropertyName String The name of the property to set
value Object The value to set the property to

Return Value

None

Example

Assumes a user property of ‘ramp’ has been created for Conveyors

oConv1 = GetComponentByNameAndType("Conveyor1","Conveyor");
oConv1.SetUserProperty("ramp",0.3);
LogDebug("Ramp=" + oConv2.GetUserProperty("ramp"));