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

AVEVA™ Diagrams

Attribute Mapping

  • Last UpdatedMar 27, 2024
  • 4 minute read

Attribute Mappings should be configured before loading data as any subsequent changes to the mappings.

Attribute mappings are crucial to the page matching process and must be correctly configured in order for diagrams to be matched and merged.

The source data may use system-specific attributes in order to specify how segments are connected across diagrams. If the source data has been generated using AVEVA P&ID and to populate the value of UDA/Database attribute mentioned in the source data, it needs to configure attribute mapping connections.

  1. Create a UDA under UDA World in LEXICON including a proper element type and dimension.

  2. To map system/project specific attributes from the source files to schematic or user-defined database attributes, or to view existing mappings, use the Attribute Mappings dialog.

    Go to Tools > Attribute Mapping from the main menu in the Schematic Model Manager module or to the Attribute Mapping option from the Schematic Model Manager menu in the LEXICON module to display the Attributes Mappings window.

  3. Create an attribute mapping.

  4. Open the source data file in a tool capable of displaying XML files (the contents of the source file will not need to be edited). Find the values of the AttributeName attributes on the CrossPageConnection XML elements.

    The following example shows the CrossPageConnection element in a data source generated by AVEVA P&ID:

  5. Source data is imported from files having schema version 3.2.0 or 3.3.3 format of the ISO 15926. It is not relevant if data is imported from later version of 3.3.3.

    1. Provide a proper element type.

    2. Link it with the UDA created in Lexicon as database attribute.

    3. The file format should be XmpLant and the file version should be 3.3.3 or 3.2.0.

    4. The UDA pmgPressureMapping has been defined for storing pressure attribute values. Set the database attribute value of the attribute mapping to pmgPressureMapping. For example, mapping TestPressure from source file.

    5. Select File Format Version.

    6. Navigate to the attribute used in the source data file to store cross-page connectivity matching values.

      The source data attribute TestPressure is used in the AVEVA P&ID. Shown below is the source attribute and its associated mapping in the Source Dictionary window of the Schematic Model Manager XPath Expression Builder.

      The correct source data attribute must now be mapped to the UDA pmgPressureMapping.

    7. To do this, click the ellipsis option to the right of the attribute mapping's Source Attribute field. This will open the XPath Expression Builder.

      Select the attribute from source file which needs to be mapped and populate the value.

    8. Save the mapping after inserting values.

  6. Go to File > Import > Diagrams to import the source file generated in AVEVA P&ID or ISO15926.

  7. A mapping from this source data file attribute to the UDA pmgPressureMapping is created.

    If Get Work or the User Options location is used to import a source file then the mapping needs to be created the same way. And if the .TRG file is available at the Data import location the source file is imported after the attribute value has been populated.

    Note:
    The mapped attribute will save data in APS_AttributeMapping.xml, which is located at project location.

    Example:

    C:\Users\Public\Documents\AVEVA\Projects\E3D3.1\AvevaPlantSample\apsdflts\Schematic\Configuration.

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