Chapter 9 Accessing objects using VBScript


Displaying all symbols in a diagram

Instead of displaying objects symbols in the diagram as soon as you create objects using the AttachObject method, you can display all objects symbols at once by attaching them to the active diagram using the following method: AttachAllObjects() As Boolean.

Example

  'create processes objects
set process1 = ActiveModel.processes.createnew
set process2 = ActiveModel.processes.createnew
  'display processes symbols
ActiveDiagram.AttachAllObjects

 


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