Read access to the unit of a data object's Y component. Read/write access to the unit of the Y component of the current formula or FlexPro data.
Syntax
DataObject.unit_y
or
Data.unit_y
or
this.unit_y = Unit
or
Data.unit_y = Unit
The syntax of the unit_y property consists of the following elements:
Element |
Description |
---|---|
DataObject |
The data object being accessed. Use this to access the current formula. |
Data |
A flexpro.Data object to which header information of the data object from which it originates is assigned. |
Unit |
The string to be assigned as the unit for the Y component. |
Remarks
If the data set does not have an aggregate data structure, then this unit applies to the entire data set.
Write access to the header information of a data object is only permitted for the formula in which the Python code is located. Instead of using write access, you should preferably edit the attribute on the General tab of the Properties dialog box.
If the data does not have a composite data structure, the unit_y property corresponds to the unit property.
Available In
FlexPro Professional, Developer Suite
Examples
flexpro.object(r’\DataSet').unit_y |
Returns a string with the physical unit of a data set object in the root folder. |
flexpro.object(r’\DataSet').data.unit_y |
Returns a string with the physical unit of the Y component of the data of a data set object in the root folder. |
this.unit_y = "%" |
Sets the unit of the Y component of the current formula to "%". (Only useful if unit monitoring is switched off) |