Define Variable

Define Variable

Specify a value or a calculation for a parameter, and then reuse to the variable in subsequent calculations.

Properties

Specify the following parameters in the Properties panel.

Variable
Name Specifies a name for the variable.
Variable Type Specifies the type of variable:
  • Integer
  • Double
  • String
  • Yes/No
  • Side
  • Superelevation
Default Specifies the value that is applied when a geometry element refers to the variable.

Click [...] to open the Expression Editor, where you can enter or calculate a value.

Miscellaneous
Comment Indicates notes about the variable. Comments can be displayed in the Preview panel.

Example

To see an example of how this geometry element is used, open the following Sample PKT file:

Define Variable Example.pkt

This example shows a simple curb.

Note: To test the condition, in the example, change the Preview Value of the target surface.