Note the following as you write EVAL expressions.
An EVAL expression that contains another EVAL expression or parentheses is invalid. You can
use parentheses only outside EVAL expressions. You can use parentheses to group EVAL
expressions.
The only valid elements inside an EVAL expression are numerical parameters, numbers,
fractions, arithmetic operators, and comparison operators.
To create an EVAL expression, enter EVAL. Model Definition adds an opening parenthesis after EVAL. If you remove the opening
parenthesis, Model Definition removes EVAL.
The following example shows Boolean and numerical evaluation functions:
Country USA AND EVAL ( Height + 2 Balustrade Height > 1000 ) IMPLY NOT Cladding Glass
The following example shows the use of fractions to define a dynamic subrange:
EVAL ( Step Width < 2/3 Total Width ) AND EVAL ( Step Width > 1/3 Total Width )
To add a numerical parameter to an EVAL expression, enter its name or click
Open Variability and, in the Model Version
Variability pane, click
Add. Depending on the context of the cursor in the expression rule,
the
Add icons are enabled or disabled just as suggestions are shown as
you type.
You can add a numerical parameter if the cursor is inside an EVAL expression and is in a
valid context. You cannot add a parameter after another parameter. You cannot add a
numerical parameter to an EVAL expression if it contains another numerical parameter with a
different unit.
If you click
Add next to a value, the value is added at the cursor position.
To enter a number or fraction, arithmetic operator, or comparison operator, enter it into
the EVAL expression. As you type, a suggestion displays it if the context is correct. For
the ≤ and ≥ operators, you can enter a shortcut (<= or
>=) and press Enter without waiting for the
suggestions to appear, or enter < or > and
select the option that contains the trailing character that you need (for example,
≤ or ≥. To enter ≠, enter
= and, from the suggestion, select ≠. You
can also paste the special characters (for example, ≤,
≥, or ≠).
To complete an EVAL expression, enter a closing parenthesis.