Getting and setting object properties

You can read or write most object properties; however a few are read-only. The syntax line in the object reference indicates whether an object property’s value can be read ({get;}) or both read and written ({get; set;}). For example, the nextAvailableUID property can be both read and written:

int nextAvailableUID {get; set;}

To retrieve the existing value for this property, you could include a line similar to this:

read_uid_value = zone.nextAvailableUID

To set a new value for this property, you could include a line similar to this:

zone.nextAvailableUID = set_uid_value