Adding Fields on Nodes/Arcs
A node can carry fields, which are:
• based on values from the corresponding HOPEX object:
• MetaAttributes
• TaggedValues
• Legattributes
• computed with a macro.
These fields are displayed on the node, but can be hidden.
Adding value-based fields on a node
To add a value-based field on a node:
1. Access the GraphSet Definition properties.
2. Display its Definition page.
3. In the GraphSubSet drop-down list, select the GraphSubSet concerned.
4. In the Nodes of the GraphSubSet pane, select the row of the node for which you want to define a field.
E.g.: Application.
5. In the
Fields of the node pane, click
New 
.
The Creation of GraphSet Field Definition windows is displayed.
6. In the Local name field, modify the default name.
7. In the Field Definition Type drop-down list, select "Value".
8. Define the value type:
By default the value is based on a MetaAttribute.
If your value is TaggedValue-based, select taggedValue.
9. Depending on the value type:
• in the MetaAttribute drop-down list, select the MetaAttribute you want to be displayed in the field.
• in the TaggedValue field, click the right oriented arrow and connect the TaggedValue you want to be displayed in the field.
10. Click OK.
Adding macro-based fields on a node
Prerequisite:
For each macro-based field you have to create its implementing macro. This macro is based on the GetAttributeValue function:
GetAttributeValue(Object as MegaOject,AttributeID as Variant,Value As String)
Where:
Object is the object of which the attribute value is requested.
AttributeID is the absolute identifier of the attribute.
Value is the attribute value returned by the function, concerning this object.

See examples of macro-based field on intermediate nodes:
To add a macro-based field on a node:
1. Access the GraphSet Definition properties.
2. Display its Definition page.
3. In the GraphSubSet drop-down list, select the GraphSubSet concerned.
4. In the Nodes of the GraphSubSet pane, select the row of the node for which you want to define a field.
5. In the
Fields of the node pane, click
New 
.
The Creation of GraphSet Field Definition windows is displayed.
6. In the Local name field, modify the default name.
7. In the Field Definition Type drop-down list, select "Computed".
8. In the Implementation field, click the right-oriented arrow and connect the macro that enables to compute the field value.
9. Define the MetaAttribute characteristics:
• MetaAttribute Length
• MetaAttribute Type (default value "String)
• MetaAttribute Format (default value "Standard)
10. Click OK.