format string

format string

The format string module allows you to construct a complex string (for use in titles or as file names) using multiple string and numeric inputs. An expression determines the content of the output. The expression is treated as a Python f-string which allows for the use of variables with Python expressions and format specifiers.

Ports

DirectionNameTypeDescription
InputZ ScaleNumberThe factor for vertical scaling.
InputExplodeNumberThe value used for separating output based on geology.
InputNumber 1NumberA value to use as a variable.
InputNumber 2NumberA value to use as a variable.
InputNumber 3NumberA value to use as a variable.
InputNumber 4NumberA value to use as a variable.
InputNumber 5NumberA value to use as a variable.
InputNumber 6NumberA value to use as a variable.
InputString 1StringA string to use as a variable.
InputString 2StringA string to use as a variable.
InputString 3StringA string to use as a variable.
InputString 4StringA string to use as a variable.
InputDateDateThe date to use as an input.
OutputResult StringStringA string created by solving the module expression.

Properties

PropertyTypeDescription
ExpressionExpressionThe Expression allows the user to control the sequence of variables used to create the output string. Supports variables: {Scale}, {Explode}, {N1} through {N6}, {S1} through {S4}, and {Date}.
Date FormatStringThe Date Format allows the user to control how Date values will be displayed in the output string.

Variables

PropertyTypeDescription
ScaleDoubleScale is the scaling factor for vertical (z) coordinates. This value reflects a multiplication factor of the layer thickness.
ExplodeDoubleThe Explode value is the distance between exploded layers, cell sets or materials.
N1DoubleThe N1 field is a double value that can be used as the variable {N1} in the expression.
N2DoubleThe N2 field is a double value that can be used as the variable {N2} in the expression.
N3DoubleThe N3 field is a double value that can be used as the variable {N3} in the expression.
N4DoubleThe N4 field is a double value that can be used as the variable {N4} in the expression.
N5DoubleThe N5 field is a double value that can be used as the variable {N5} in the expression.
N6DoubleThe N6 field is a double value that can be used as the variable {N6} in the expression.
S1StringThe S1 field is a string value that can be used as the variable {S1} in the expression.
S2StringThe S2 field is a string value that can be used as the variable {S2} in the expression.
S3StringThe S3 field is a string value that can be used as the variable {S3} in the expression.
S4StringThe S4 field is a string value that can be used as the variable {S4} in the expression.
DateDateThe Date field is a date value that can be used as the variable {Date} in the expression.

Output

PropertyTypeDescription
ResultStringThe Result is the output string created by resolving the Expression. This field is read-only.