Sample syntax for creating user-defined symbols in System Architect
User-defined symbols are created and configured through System Architect’s customization file, USRPROPS.TXT. The System Architect online help and System Architect User Guide provide the detailed information that you need to create your symbols for diagrams, and to create your own diagram types. Following are samples of the syntax that is used in the USRPROPS.TXT file to create user-defined symbols.
To create a new symbol, enter the following syntax in the USRPROPS.TXT file:
RENAME SYMBOL “User 1” to “Satellite”
This creates a new symbol named Satellite.
To create a new line symbol, you must use the DEPICT LIKE keywords:
RENAME SYMBOL “User 2” to “Relates To”
SYMBOL “Relates To” {DEPICT LIKE “Dependency” IN “UML Class”}
This creates a new symbol that is a line symbol.
Note System Architect XT does not support all the line symbol depictions. For example, the “Relates To” symbol will get a default depiction in System Architect XT. When this symbol is opened back in System Architect, the correct depiction is applied.
New user-defined symbols can be assigned to Business Process diagrams as follows:
RENAME SYMBOL “User 4” to “My Line Symbol”
SYMBOL “My Line Symbol”
{DEPICT LIKE “Dependency” IN “UML Class” ASSIGN To “Business Process” }
The new symbol will be available for Business Process diagram.
A symbol can be defined by a definition as follows:
SYMBOL “My Symbol”
{DEFINED BY “My Definition” ASSIGN TO “My Diagram”}
A new symbol can be assigned a menu and diagram depiction as follows:
SYMBOL “Satellite”
{
ASSIGN To “Business Process”
DEPICTIONS {DIAGRAM images\satellite.wmf}
DEPICTIONS {MENU images\satellite.bmp }
}
The symbol is depicted with satellite bitmap on the toolbar, and satellite metafile on the diagram.
The symbol can also be depicted using a property value of the symbol, as follows:
SYMBOL “Test” in “Deployment”
{PROPERTY “Stereotype” {EDIT Text ListOnly List “Event Stereotype” DEFAULT “” LENGTH 32}