VALUE - Intergraph Smart 3D - Reference Data

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
12 (2018)

Relates a specific checked option or selected drop-down option to the corresponding template .xml value for that property.

VALUE exists as a child node under the POPULATE node. You can define multiple VALUE nodes as shown in the following example for drop-down options:

<POPULATE>
<VALUE NAME="Top">1</VALUE>
<VALUE NAME="Bottom">2</VALUE>
<VALUE NAME="Left">3</VALUE>
<VALUE NAME="Right">4</VALUE>

If TYPE is set to Dropdown, the NAME attribute of each VALUE node displays as an option in the drop-down menu. The Rule Manager then writes the value of this node, such as 1, 2, 3, or 4, to the .xml file.

The NAME attribute values must match the DATA_TYPE for this property. For example, if the DATA_TYPE is Integer, you cannot specify <VALUE NAME="RIGHT">Right</VALUE> because Right is non-numeric.

The following example shows VALUE nodes for a check box.

<POPULATE>
<VALUE NAME="True">-1</VALUE>
<VALUE NAME="False">0</VALUE>

True and False are the only acceptable attribute values for the check box VALUE node's NAME attribute. You can tell the software to write any appropriate values to the .xml template for True and False, as long as the DATA_TYPE matches.

SHARED Tip Established convention dictates that the software notates a True value as -1 and a False value as 0. However, you can reverse this logic and specify that the software write 0 for a True property and -1 for a False property. For an example, see the delivered ignoreViewDirection property.

See Also

DATA_TYPE
POPULATE
TYPE
Label Rule Manager
Appendix: Annotation Rule Manager Customization
XML Structure for Property and Property Group Definitions