Book a Demo

Author Topic: Getting a collection of diagram elements?  (Read 5193 times)

Charlie

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Getting a collection of diagram elements?
« on: May 18, 2007, 07:53:03 am »
Using EA code, how do I get a collection of Elements in a diagram?  The types of items I am trying to return include: Tables, Screens, Classes.
« Last Edit: May 19, 2007, 03:56:25 am by Charlie »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Getting a collection of diagram elements?
« Reply #1 on: May 20, 2007, 12:58:20 pm »
You access Diagram.DiagramObjects.  That is a collection of DiagramObject.  To get the actual object it represents you'll have to pass DiagramObject.ElementID to Repository.GetElementByID().