Expressions
- Last UpdatedMay 25, 2022
- 1 minute read
Database expressions can be of the following types:
-
algebraic
-
boolean (or logical)
-
text
-
Element ID
-
position
-
direction
-
orientation
The contents of an expression may contain the standard operator and mathematical functions along with the names of attributes and element identification.
Real Expression
(XLEN * YLEN * ZLEN * 2)
This expression simply multiplies the three attributes XLEN, YLEN, ZLEN together and then multiplies by two.
The attributes refer to the current element. If attributes of other elements are required then the OF syntax is used.
Boolean expression
(PURP EQ 'HS' AND AREA OF OWNER EQ 1)
The 'OF' keyword makes sure that the AREA attribute is obtained from the owner of the current element rather than the current element itself.
The main uses of expressions are:
-
Catalog parameterization
-
Template parameterization
-
Rules
-
Drafting line styles
-
User level collections and report
Database expressions are very similar to Programmable Macro Language (PML) expressions. The major difference is that database expressions may not contain other PML variables or functions. For example, (XLEN * !MYVAR) is not a valid database expression.