Read access to the value and unit of a calculation of a data object.
Syntax
DataObject.calculations[Name]
The syntax of the calculations property consists of the following elements:
Element |
Description |
---|---|
DataObject |
The data object being accessed. Use this to access the current formula. |
Name |
Required. A string with the name of the calculation. |
Remarks
The calculations property provides a Python dictionary. Its elements are flexpro.PhysValue objects with the properties value and unit.
Available In
FlexPro Professional, Developer Suite
Examples
flexpro.object(r'\Formula’).calculations["Frequency"].value |
Accesses the value of a calculation with the name "Frequency", which is saved in the calculation list of a formula in the root folder. |
flexpro.object(r'\Formula’).calculations["Frequency"].unit |
Accesses the unit of a calculation. |