Creating expression parameters

To create an expression parameter

  1. In the tabular area, click the Parameters tab.
  2. Click Select .
  3. In the tabular area, right-click, and then click New Parameter on the context menu.

The Create Parameter dialog box appears.

Creating a Parameter
Name Тhe name of the parameter. Parameter names are case-sensitive and cannot begin with a number.
Type Expression: Sets the parameter as an expression one. When you select this option, the Expression, Min and Max options become available.
Selection: Sets the parameter as a selection one. When you select this option, the Expression, Min and Max options become unavailable.
Expression For expression parameters, specifies the expression that EngView uses to compute the value of the parameter. An expression can consist of mathematical expressions, mathematical functions in the currently applied template, and already-existing parameters. To include other parameters in an expression, make sure they precede the current parameter in the tablular area. You can include in the parameter expression all functions and parameters predefined in the applied parameter template. The browse button opens a dialog box in which you select values for selection parameters.
Min For expression parameters, sets the minimum value that the parameter may take. When no value is set, the field is empty.
Max For expression parameters, sets the maximum value which the parameter may take. When no value is set, the field is empty.
Description Notes about the parameter. When you attach the parameter to a drawing, this description appears as a tooltip when in the tabular area you rest the mouse pointer over the name of the parameter and also in the parameter's Remarks column in the tabular area.
Scope Local: Makes the parameter valid only for the drawing in which you create it.
Global: Makes the parameter valid for all the drawings of the project.
Group A list of all currently available parameter groups in the project. Select the groups that you want the parameter to be assigned to.
  1. To define the new parameter as an expression one, for Type, click the Expression option.
  2. In Name type a name for the parameter.
  3. In Expression, type an expression of the parameter.

TIP: To use a function from the template, type or copy the name of the function.

  1. (Optional) In Min and Max, set, respectively, the minimum and maximum values that you want the parameter to have.
  2. (Optional) In Description, type a text describing the parameter.
  3. In Scope, select the parameter's area of application: in a active drawing (Local) or for the entire project (Global). Note that whichever you choose will not add the parameter to the applied parameter template.
  4. (Option) In the Group area, assign the parameter to one or more parameter groups. Every parameter is by default assigned to the Main group.
  5. When you have set all the properties that you want, click OK.

In the tabular area, the parameter now appears at the bottom of the list of parameters. Because EngView computes parameters in top-down order, a parameter expression cannot cite a parameter that comes after it. That is why, you need to move the newly created parameter to where it is needed for the correct computation of parameters.

  1. Right-click the parameter's row, and then click Move Up. Repeat this action as many times as needed to move the parameter to where you need it.

TIP: You can create a parameter at a specific place in the list of parameters. To do so, select the existing parameter that you want to come after the new parameter, right-click, and then click New Parameter Above.