Read access to the name of the physical quantity of a data object's Y component. Read/write access to the designation of the physical quantity of the Y component of the current formula or FlexPro data.
Syntax
DataObject.quantity_y
or
Data.quantity_y
or
this.quantity_y = Quantity
or
Data.quantity_y = Quantity
The syntax of the quantity_y property consists of the following elements:
Element |
Description |
---|---|
DataObject |
Optional. The data object being accessed. If you omit this element, then the current formula is accessed. |
Data |
A flexpro.Data object to which header information of the data object from which it originates is assigned. |
Quantity |
The string to be assigned as the name of the physical size for the Y component. |
Remarks
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.
Available In
FlexPro Professional, Developer Suite
Examples
flexpro.object(r’\DataSet').quantity_y |
Returns a string with the name of the physical quantity of a data set's Y component in the root folder. |
this.quantity_y = “Pressure" |
Sets the quantity of the current formula's Y component to "Pressure". |