Chapter 9 Accessing objects using VBScript


Creating a graphical synonym using VBScript

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)

 


Copyright (C) 2005. Sybase Inc. All rights reserved.