Customizing the metamodel > Diagrams: Creating and modifying > Assigning symbols to diagrams > Assigning a symbol type to a diagram type
  
Assigning a symbol type to a diagram type
You can assign new symbol types or existing symbol types (symbols that already exist in another diagram) to new or existing diagram types.
To add symbol types to diagram types, use the following syntax:
ASSIGN symbol-type-name [IN diagram-type-name1] TO diagram-type-name2
To add symbol types to diagram types in the SYMBOL specification, use the ASSIGN .. TO keyword combination, as follows:
SYMBOL symbol-type-name [IN diagram-type-name1] {ASSIGN TO diagram-type-name1}
Example
The following example creates a new diagram type called a Wireless Network diagram, which provides of three new symbol types to be drawn on it: a Satellite, a Computer, and a Server, and one existing symbol type to be drawn on it: a state symbol from a “State Transition Ward & Mellor” diagram (as compared to a State symbol from a UML State diagram or an IDEF3 State diagram, and so on:
RENAME DIAGRAM "User 1" To "Wireless Network"
RENAME SYMBOL "User 1" TO "Satellite"
RENAME SYMBOL "User 2" TO "Computer"
RENAME SYMBOL "User 3" TO "Server"
ASSIGN "State" IN "State Transition Ward & Mellor" TO "Wireless Network"
SYMBOL "Satellite" {ASSIGN TO "Wireless Network"}
SYMBOL "Computer" {ASSIGN TO "Wireless Network"}
SYMBOL "Server" {ASSIGN TO "Wireless Network"}
See also Limitations of assigning a symbol type to a diagram type.
See also
Assigning symbols to diagrams