Extending product function with VBA : The System Architect object model : Object model classes : Encyclopedia class : Encyclopedia class: Methods : GetCurrentDiagram
  
GetCurrentDiagram
This method returns the currently open diagram as a diagram object.
Rules
A diagram object must be dimensioned and set as the current open diagram. See example below.
Example
Dim OCurrentDiagram As Diagram
Set OCurrentDiagram = oEncyclopedia.GetCurrentDiagram
See also
Encyclopedia class: Methods