Built-In Variables

Micromine Geobank features a number of built-in variables that can be used to substitute and return values in fields on forms. The following table lists and defines the available variables.

Variable Definition
[$GBTEMP]

Substitutes the configured file path of the temporary folder for objects that need to specify a file path.

This can also be [$GBISTEMP] in legacy objects.

[$GBWORK]

Substitutes the configured file path of the work folder for objects that need to specify a file path.

This can also be [$GBISWORK] in legacy objects.

[$GBRESOURCES] Substitutes the configured file path of the Micromine Geobank Resources folder for objects that need to specify a file path.
[$GBCONFIG] Substitutes the configured file path of the Micromine Geobank Configuration folder for objects that need to specify a file path.
$DATE

Substitutes the current date in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

  2. The default value of sub parameters and global sub parameters.

$DATETIME Substitutes the current date and time in the default value of substitute parameters and global sub parameters.
$DEFAULTPROJECT Substitutes the name of the default project in Plan View and other drillhole tools.
$DESPATCHID

Substitutes the Despatch ID in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

$INSTANCE Used by LAS File import. This variable returns a maximum instance for a given project and site ID. The field can be mapped to a column for the LAS File import.
$OBJECTNAME Used for Field and Text Labels templates in Graphic Reports, allowing you to set the captions of labels to the name of the object being executed.
$USER

Substitutes the current username in the following objects:

  1. Despatch and Receipt - can be mapped to metadata fields.

  2. For the default value of sub parameters and global sub parameters.

$WINDOWSUSER

Substitutes the Windows login username of the user. This variable can be defined in the sub parameters as the default value. The variable can also be defined as a default value in the column initialisation in Dataviews.

This extends to .NET sub parameters when using a text input field.

More information is contained in General (Options) and Substitution Parameters.

General

Substitution Parameters

Despatch Details

Receipt Details