Creating a Graphical Synonym by Script

You create a graphical synonym by attaching the same object twice to the same package.

Example

set diag = ActiveDiagram
set pack = ActivePackage
set class = pack.classes.createnew
set symbol1 = diag.AttachObject (class)
set symbol2 = diag.AttachObject (class)