Extending product function with VBA > The System Architect object model > Object model classes > Encyclopedia class > Encyclopedia class: Methods > GetDiagramById
  
GetDiagramById
All diagrams stored in System Architect are uniquely identified internally by the use of a data dictionary identifier. This method will return a diagram as a diagram object from its specified identity.
Syntax
Encyclopedia Object.GetDiagramById(Id)
Parameters
Encyclopedia Object
Use: Required
Data type: Object
Any instantiated Encyclopedia class
Id
Use: Required
Data type: Long
All diagrams stored in System Architect are uniquely identified internally by the use of a data dictionary identifier.
Example
Dim oDiagram As Diagram
Set oDiagram = oEncyclopedia.GetDiagramById(2)
See also
Encyclopedia class: Methods