Customizing the metamodel : Keywords for USRPROPS : DEPICTIONS
  
DEPICTIONS
Identifies how a symbol can be represented by an image file that you supply. Menu images must be bitmaps. Diagram images can be metafiles (wmf, emf or emf+), bmp, jpg, png or svg. You may specify how this symbol is depicted on the diagram workspace using the DEPICTIONS keyword combined with the DIAGRAM keyword. The RETAIN STYLE keyword should also be added to the syntax if it is important to retain the style of the image that you are using. This will maintain the original coloring and style of the symbol in the tool but is only supported for windows metafiles. You may also specify how the symbol is depicted in the toolbox and Draw menu using the DEPICTIONS keyword combined with the MENU keyword. You may also use the DEPICTIONS keyword in a list, so that the symbol is depicted in different ways based on the value of the list that is selected.
Depiction keyword specification hierarchy
Depiction specified for List property (in symbol or definition) overrides depiction specified against symbol type which overrides depiction specified against definition type which overrides depiction specified against supertype definition.
Syntax 1
SYMBOL <symbol-type-name>
{ ...
DEPICTIONS { DIAGRAM RETAIN STYLE <depiction-file>}
DEPICTIONS { MENU <depiction-file> }
...}
where <depiction-file> is the name and full path of a metafile or a bitmap.
Example 1
Rename Symbol "User 3" To "Radar"
SYMBOL "Radar"
{ASSIGN To "Wireless Network"
DEPICTIONS { DIAGRAM RETAIN STYLE "C:\Program Files\UNICOM Systems\System Architect\Pictures\radar.bmp" }
DEPICTIONS { MENU "C:\Program Files\UNICOM Systems\System Architect\Pictures\radartoolbar.bmp" }}
Syntax 2
List "..."
{
VALUE "..." DEPICTIONS {...}
}
Example 2
List "Class Stereotypes"
{
Value "actor" DEPICTIONS {DIAGRAM RETAIN STYLE images\slctact.wmf MENU images\slctact.bmp}
Value "boundary" DEPICTIONS { DIAGRAM RETAIN STYLE images\slctbndy.wmf MENU images\slctbndy.bmp}
...}
DEFINITION "Class" {
PROPERTY "Stereotype" { EDIT Text LIST "Class Stereotypes" INIT_FROM_SYMBOL Default "" LENGTH 20 } ...}
Syntax 3
DEFINITION <definition-type-name>
{ ...
DEPICTIONS { DIAGRAM RETAIN STYLE <depiction-file>}
DEPICTIONS { MENU <depiction-file> }
...}