Customizing the metamodel > Keywords for USRPROPS > HIERARCHICAL
  
HIERARCHICAL
By default, user diagrams are networks (of symbols), but if this keyword is included in a diagram type’s description, the diagram type is treated as a hierarchical diagram. This means that all node symbols assigned to it can be arranged in a hierarchy, and other related hierarchical functionality (such as hierarchical numbering) is supported.
The HIERARCHICAL keyword can be used only with user-defined diagram types; it cannot be applied to existing diagram types. In any other context, it is ignored after a warning to the user. For information on how to create a new user-defined diagram type, see RENAME DIAGRAM.
Example
The following example creates a diagram that is hierarchical; that is, it is similar to an organizational chart, and so on.
RENAME DIAGRAM "User 1" to "Zoo"
RENAME SYMBOL "User 1" to "Mammals"
RENAME SYMBOL "User 2" to "Reptiles"
RENAME DEFINITION "User 1" to "Mammal"
RENAME DEFINITION "User 2" to "Reptile"
SYMBOL "Mammals"
{ DEFINED by "Mammal" ASSIGN TO "Zoo" }
SYMBOL "Reptiles"
{ DEFINED by "Reptile" ASSIGN TO "Zoo" }
DIAGRAM "Zoo"
{HIERARCHICAL PROPERTY "Hierarchical Numbering"
{ EDIT Boolean LENGTH 1 DEFAULT "T" }
PROPERTY "First Node Number"
{ EDIT Text Length 20 DEFAULT "1" }
}
See also
Keywords for USRPROPS