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
  • Superelevation Axis of Rotation
  • Slope Direction
  • Potential Pivot
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.

The following table lists valid values for the unique variable types:
Variable Type Valid Values
Side
  • None
  • Left
  • Right
Superelevation
  • None
  • LeftInsideLane
  • LeftInsideShoulder
  • LeftOutsideLane
  • LeftOutsideShoulder
  • RightInsideLane
  • RightInsideShoulder
  • RightOutsideLane
  • RightOutsideShoulder
Superelevation Axis of Rotation

This variable specifies whether Superelevation Axis of Rotation is supported or not.

  • Support
  • Unsupported
Slope Direction
  • AwayFromCrown
  • TowardsCrown
Potential Pivot

This variable specifies whether the subassembly has potential pivot points for Superelevation Axis of Rotation or not

  • Yes
  • No
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.