Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Gateway for 2D Data

Default Value Mapping in Attribute

  • Last UpdatedMar 24, 2025
  • 1 minute read

While creating new attributes, provide a default value in the base mapping if no attribute value is found in the data source. If no value is found in the data source for a mapped property/characteristic, then that will be excluded from the output file unless you define a default for it.

<Object>
……
<Attributes>
<Attribute>
<Name value="Pressure" />
<Value value="[max_pressure]" default="NA" />
</Attribute>
</Attributes>
</Object>

In the above example, an attribute Pressure is created in the object. The value for this attribute is resolved using the [max_pressure] attribute belonging to the same object, for example, most probably extracted from the source data. If the referenced attribute (max_pressure) is not present for this object, then the default value ‘NA’ will be used for the Pressure attribute value.

The result of this mapping is those objects with the [max_pressure] attribute present in the source will have the following characteristic in EIWM:

<Characteristic>
<Name>Pressure</Name>
<Value>30</Value>
</Characteristic>

and for the objects that do not have the [max_pressure] attribute will have the following characteristic in EIWM:

<Characteristic>
<Name>Pressure</Name>
<Value>NA</Value>
</Characteristic>

TitleResults for “How to create a CRG?”Also Available in