Presentation Mapping
- Last UpdatedMar 24, 2025
- 2 minute read
Presentation Mapping is used to adjust the output SVG and EIWM properties such as materials and colors. Use of the Presentation mapping extension in the main Transform Configuration file is optional.
The following example shows all the parameters of presentation mapping configuration.
Section with materials mapping
This section is used to map the material used in the model in AIM Dashboard. These values can then be used with the 2D Materials functionality in AIM Dashboard, for example, to highlight or hide all objects in the model that have the same material value. The syntax allows you to to map any attribute to any toMaterial value.
Example:
<materials>
<material fromAttribute="ClassId" fromValue="Wall" toMaterial="Walls"/>
<material fromAttribute="ClassId" fromValue="OPENINGELEMENT" toMaterial="OPENINGS"/>
<material fromAttribute="ClassId" fromValue="DOOR" toMaterial="DOORS"/>
<material fromAttribute="ClassId" fromValue="WINDOW" toMaterial="WINDOWS"/>
</materials>
Section with colours mapping
The section is used to model colors in AIM Dashboard. The syntax contains two ways to map colors: fromAttribute and fromColour. It is possible to map colors from any attribute value or specific colour attribute value to a toColour attribute.
The fromColour method maps the input color to a new color.
Example:
<colours>
<colour fromAttribute="Name" fromValue="P100" toColour="green"/>
<colour fromAttribute="ClassId" fromValue="PART" toColour="#008000"/>
<colour fromColour="magenta" toColour="130,100,130"/>
<colour fromColour="#455050" toColour="blue"/>
<colour fromColour="255,10,0" toColour="#F3F3F3"/>
</colours>
The following methods can affect the coloring used in Gateway renditions:
-
RGB, for example, 128, 0, 128.
-
Known colors (HTML color standard), for example, Red.
-
HTML hexadecimal: #E3D3D3.
-
Wildcard "*" in fromColour attribute to map all colors not affected by previous Colour mapping items.
-
AutoCAD 2D DWG AutoCAD Color Index (ACI) mapping colors can be specified, for example,
<colour fromAttribute="autocad colour index" fromValue="71" toColour="red"/>
-
MicroStation 2D DGN Color Table (DCT) mapping colors can be specified in the fromColour attribute in the format DCT<colourIndex>, for example,
<colour fromColour="DCT170" toColour="blue"/>.
Note: When using the extractor for 'Smart P&ID', the 'smconstant' color definition system has been replaced by the standard RGB system, which should therefore be used for color mapping. Prior configurations in the Gateway Configuration Tool that specify 'smconstant' mapping will be upgraded automatically to the equivalent RGB mapping, as smconstant = R + G x 256 + B x 65536.