ATTRIBUTE and ATTRIBUTE_VALUE - Intergraph Smart 3D - Reference Data - Hexagon

Intergraph Smart 3D Drawings and Reports Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Drawings and Reports
Search by Category
Reference Data
Smart 3D Version
13

The ATTRIBUTE and ATTRIBUTE_VALUE properties specify the name and value of an attribute of an .xml property.

ATTRIBUTE and ATTRIBUTE_VALUE exist as attributes of the XML_PATH node. For more information, see XML_PATH.

Use ATTRIBUTE and ATTRIBUTE_VALUE together when an XML_PATH value refers to a rule or template node with an .xml hierarchical location that has multiple properties in the path.

Example 1

The following shows an excerpt from a matchline template file. The four ID property values are Matchline\MatchlineNorth.rtp, Matchline\MatchlineWest.rtp, Matchline\MatchlineSouth.rtp, and Matchline\MatchlineEast.rtp.

<label>
<content>
<contentModule value="DrawingMatchlineContent"/>
<ID attributeName="Matchline" type="North">Matchline\MatchlineNorth.rtp</ID>
<ID attributeName="Matchline" type="West">Matchline\MatchlineWest.rtp</ID>
<ID attributeName="Matchline" type="South">Matchline\MatchlineSouth.rtp</ID>
<ID attributeName="Matchline" type="East">Matchline\MatchlineEast.rtp</ID>
</content>
</label>

In the common properties schema file, if you specify the .xml location for the Matchline\MatchlineWest.rtp property as <XML_PATH>label/content/ID</XML_PATH>, the software does not read all of the properties at that path, and thus uses the ID node that corresponds to the Matchline\MatchlineNorth.rtp value because it is the first node in the path. To correct this ambiguity, use the ATTRIBUTE and ATTRIBUTE_VALUE properties in the common properties schema file to specify which ID node in the template file contains the required .rtp file.

Example 2

The following shows how to use ATTRIBUTE and ATTRIBUTE_VALUE to specify the ID node for the Matchline\MatchlineWest.rtp file.

<XML_PATH ATTRIBUTE="type" ATTRIBUTE_VALUE="West">label/content/ID</XML_PATH>

Example 3

The following shows how to use ATTRIBUTE and ATTRIBUTE_VALUE to specify the attributeName attribute for the Matchline\MatchlineWest.rtp file.

<XML_PATH ATTRIBUTE="type" ATTRIBUTE_VALUE="West">label/content/ID/@attributeName</XML_PATH>

See Also

XML_PATH