This functionality is only available for certain module packages.

You are here: EEC > BASE > Basic workflows > Create parameter

Create parameter

Any parameter can be generated within a library. Any kind of structures can be created by way of units in order to organize parameters. A new parameter can be selected via the context menu of a unit or another object. To do this, select New > Parameter (see Figure):

The parameter editor opens with the editor page Attributes:

The Name and Type of the parameter are specified on the Attributes editor page. The type determines the possible values of the parameter.

If a given value does not conform to the type of the parameter, the result field is highlighted in red and a corresponding message is entered in the message log.

On the Formula editor page, a value can be entered for the parameter that is either fixed or determined by way of the runtime formula. If only certain parameters are to be selectable, they can be created in the table Selection values (see the following figure).

Note:

When creating parameter values, the usual key combinations for Copy / Cut / Paste are not supported. These functions are available only through the context menu.

The validity of the values to be entered can be checked by means of a formula in the Formula field. If a given value is not valid, the result field is highlighted in yellow and a message is entered in the message log with the text of the Warning field.

Example of validity check:

The following formula checks whether the entered value lies between 50 and 100:

=this.value < 100 and this.value > 50

Note:

The Observe conditions when checking formula results option in the user preferences must be activated in order for the conditions to be checked for valid values (see Preferences for validating).