Catalogues and Specifications
Reference Manual
Manipulating the Catalogue Database using PARAGON
:
Using Parameters
: Expressions Using Parameters
Expressions Using Parameters
Any expression which includes parameters and which evaluates to a real result may be built into definitions of Pointsets and Geomsets. For example:
PDIA (4.5 * PARA[2])
PDIS (-PARA[2])
PBOR (PARA[7] + IPARA[1])
PHEI (PARA[2] + 50)
PDIS (APARA[2] - PARA[7])
PDIA (-(PARA[1] - PARA[5]))
PX (2 * OPARA[3])
PTDIS (PARA[2] * DESP[5])
PHEI (PARA[4] / ODESP[1])
PZ (5 * (ADESP[3] * PARA[9])
PDIS (3.1 * (PARA[1] + HEIG))
PHEI (PARA[1] * TAN (ANGL / 2))
In all the examples above the expressions are parsed both to evaluate the resultant value, and the resultant physical dimension. It helps validate the expression for dimensional correctness if the parameters are dimensionally defined with units and the literal values have unit qualifiers appended. The references to other attributes (e.g. ANGL, HEIG) are already known to be angles and distances.
(For the full range of expression syntax available, refer to
PML Expressions
.)
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.