Create Map Definition#
MapDefinition.Create
MapDefinition.CreateTemplate
MapDefinition.CreateFromTemplate
Overview#
This operation is used to create a Map Definition. A template can also be created using a similar procedure and there is also the possibility of using a template to create the new object as well. This selection can be done in the main entity menu.
Setup#
No specific setup is required other than to meet the preconditions of the transaction.
Preconditions#
- The Map Definition does not currently exist in the system.
Sequence of Steps#
Step 1: General Data#
- Provide a name for the Map Definition.
- Optionally, provide a description of the Map Definition.
- Select the Map Definition type. The list of possible values is taken from the lookup table MapDefinitionType.
-
Select the Layout Type:
- Regular: the map consists of units that are regular rectangles or squares.
- Irregular: the map consists of units that have irregular shapes and positions. In this case it's necessary to provide a layout file according to the expected format as described in the Map Definition section.
-
For regular maps, enter the number of Rows of the Map Definition.
-
For regular maps, enter the number of Columns of the Map Definition.
Info
For regular maps, the number of rows and columns will be inferred from the Mask file, if one is provided.
-
Enter the Height (used for display purposes).
- Enter the Width (used for display purposes).
-
Enter the Dimension Units - the values are taken from the lookup table Units.
Info
For irregular maps, if the Height and Width are not defined, the system will use the Height and Width as defined in the Layout file
-
Optionally, upload a Mask. A Mask is a XML file compliant with the G85 format. The units with the NullBin value are considered as non-existing in the Map Definition. All other values are considered as existing units.
Info
The mask applies to all the layers of the map definition.
-
For irregular maps, a layout definition file must be provided. Each unit in the file must be unique and sequential.
-
Optionally, select a background image.
-
Define the colors to apply to empty (unused) units.
- Define the color for grid lines.
- Select whether the grid lines should be shown by default.
- Specify the Notch:
- None, no notch
- Bottom, notch at the bottom of the map
- Left, notch at the left of the map
- Right, notch at the right of the map
- Top, notch at the top of the map
- Specify the default rotation (counter-clockwise):
- Rotate0
- Rotate90
- Rotate180
- Rotate270
- Optionally, define the units of the Map of this Map Definition. If it's intended to synchronize a Material with a Map, the units of the Map Definition of the Map must match with either the primary or secondary units of the Material.
- Define the ruler mode:
- Absolute, starts with one and continues even in the case of breaks
- ContinueOnBreak, starts with one and skips breaks
- ResetOnBreak, starts with one but it's reset whenever there is a break
- Select whether the ruler should be shown by default.
- Select Next to continue to the Layer configuration of the Map Definition.
Step 2: Layers#
This section is used to define the Layers of the Map Definition. You can copy the Layers from another Map Definition by pressing the
button on the left side panel and selecting the source Map Definition that contains the desired layers. Pressing Copy will copy the Layers to the current Map Definition.
To add Layers manually, add as many Layers as desired (press in the top right of the grid to add, and to remove), specifying for each Layer, depending on the type of Map Definition:
- Name
- Layer Type:
- Attribute, if intended to store values
- Bin, if intended to store bin values
- Loss, if intended to store loss reasons (only one layer of this type is supported per Map Definition)
- Loss Classification, if intended to store loss classifications
- Measurement, if intended to store a measurement
- If the Layer type is Loss, optionally the Bonus Reason can be defined.
- If the Layer type is LossClassification, it's necessary to specify a loss classification name.
- Data type (for Loss and Loss Classifications, it's automatically set to String).
- If the data type is Decimal, it's necessary to specify the precision.
- If the data type is String, it's necessary to define the data type size.
- Optionally, define the default value for the layer - every unit of the layer will be initialized with this value.
- Define whether the Layer is the default layer (each Map Definition requires one and only one default layer).
- Define whether the values should be shown by default.
- Define whether the Layer unit information must be displayed on the Unit details information tooltip or not. This tooltip is only shown for irregular Maps.
- Define the default background color for the units of the layer.
-
Define the default foreground color for the units of the layer.
-
Select Next to continue to the Filters configuration of the Map Definition.
Step 3: Filters#
This tab is used to define the filters for the layer.
- Define the name of the filter.
- Check whether the filter should be pre-selected or not.
- Define whether the filter is a filter good filter or not (there can be only one filter good filter per layer)
- Define the filter type:
- Inclusion list: it checks for units matching a list of values
- Exclusion list: it checks for units not matching a list of values
- Range: it checks for a range of values
- Depending on the filter type, define the inclusion list (semi-colon separated list, e.g.: 1;2;3), the exclusion list (semi-colon separated list. e.g.:1;2;3) or range (a bracket defined interval, e.g.: ]3:5] to specify values from 3 up until, but excluding 5).
- Optionally define the pick code, typically used for automation.
- Define the background color for the filter.
- Optionally, for layers of type Bin and if the filter good is false, define a Loss reason.
-
Define the foreground color for the filter.
Info
The filters must be disjointed, that is, they must never overlap.
-
Select Create to complete the operation and the new Map Definition will be created.



