Measurement Expression and its Usage in Variables

Предыдущая страницаВ началоСледующая страница

Expression of measurement

The Expression box is available in the Measure tab of the Measure20x20 Measure command's parameters window below the list of measurement results. It displays an expression, according to the syntax of the variable editor, for the specified dimension. The expression can be written to a variable and automatically recalculated, when the original measurement objects change. To write an expression to a variable, you need to use the Variables tab (see below).

Following functions are used in measurement expressions:

Measure the parameter of one element:  get(), get_u(), get_lcs(), get_lcs_u(), getv(), tgetv();

Measure the ratio between two elements: distance(), distance_u(), measure(), measure_u();

Measure several elements: get(), get_u(), get_lcs(), get_lcs_u().

For more information about these functions, see the get(), getv(), tgetv(), distance() and measure() sections.

Variables

The expression of each dimension can be written to a variable. Variables created to record measurement expressions are displayed in the Variables tab of the Measure20x20 Measure command's parameters window. The variables added in the current session of the command are displayed along with variables created earlier, using the currently measured properties. The created variables will automatically change their value when the measured properties change.

Following buttons are available to the right of the list of variables:

MeasureGeneral13 Add Variable
Adds a variable to record the expression of the selected result (see below).

MeasureGeneral16 Change Expression
Replaces the expression of the variable currently selected in the list of variables with the expression of the property currently selected in the list of measurement results (see below).

MenuDelete Delete Element from the List
Deletes the selected variable in the list. Only variables added in the current session of the Measure command can be deleted. Previously created variables can only be deleted in the variable editor.

Add Variable

To add a variable, you need to perform the following procedure:

Select the required property in the list of measurement results.

 26MeasureGeneral12

In the Variables tab, click the Add Variable MeasureGeneral13 button.

In the Variable Properties dialog box that appears, the Expression box will already be filled in based on the Expression field in the Measure20x20 Measure command's parameters window. It is mandatory to enter the variable name. Other parameters can be specified optionally (working with the variables dialog is described in the Creating Variable in Variable Editor section).

 26MeasureGeneral14

Confirm the adding of the variable by pressing the OK button. After that, the added variable will appear in the Variables section of the Measure20x20 Measure command's parameters window. The creation of the variable occurs at the moment of exiting the Measure20x20 Measure command with confirming changes (via AutomenuOk1 or <Ctrl>+<Enter>). If the changes are canceled (via AutomenuCancel1 , <X>, <Esc> or mouse right), the variable will not be created. It is not necessary to terminate the command immediately after adding the variable. You can continue to work in the command, including adding other variables, and all actions performed in the current session will be accepted or canceled depending on the way of exiting the command.

 26MeasureGeneral15

Change Expression

To replace an expression of a variable, you must perform the following procedure:

Select in the list of measurement results the property, to whose expression you want to change the expression in the already added variable.

Select in the list of variables the variable, whose expression you want to replace. An expression may be changed not only fro the variables added in the current session of the Measure20x20 Measure command, but also for the variables created earlier.

 26MeasureGeneral15-1

Press the MeasureGeneral16 Change Expression button. In the list of variables, the expression for the selected variable will be changed. The change will only be applied at the moment of exiting the Measure20x20 Measure command with confirming changes (via AutomenuOk1 or <Ctrl>+<Enter>). If the changes are canceled (via AutomenuCancel1 , <X>, <Esc> or mouse right), the expression replacement will not be applied. It is not necessary to terminate the command immediately, upon expression replacement. You can continue to work in the command, and all actions performed in the current session will be applied or canceled, depending on the way of exiting the command.

 26MeasureGeneral18

See Also:

Measurement Coordinate System

Units of Measurement

Measurement Results

Defining Parameter of Element via Measurement Result

Special Functions