Book a Demo

Author Topic: GetReferenceList  (Read 3962 times)

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
GetReferenceList
« on: November 09, 2011, 02:13:01 am »
I am using the latest (Trial) version V9.x

Can someone explain what I'm supposed to get via
refs = Repository.GetReferenceList("Diagram");
 - or similar

I was expecting a collection of diagrams within the whole repository

If I print refs.Count  -- I don't get a large number (as I was expecting)

I was expecting this to be a collection of the total set of diagrams within the Repository

??Have I mis-understood the API

please clarify




Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: GetReferenceList
« Reply #1 on: November 09, 2011, 08:39:47 am »
It gives you the list of diagram types.

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: GetReferenceList
« Reply #2 on: November 09, 2011, 10:13:50 am »
So
refs = Repository.GetReferenceList("Element");

will return me list of the type(s) of Element used within my repository

doesn't seem to be very useful

I was hoping that this would have been a quick way to get access to list(s) of Diagrams/Connectors/Elements so that I could generate reports on what's been used where -- & also what's NOT been used

Oh well -- back to the model recursive browsing mechanism



Thanks for your quick response


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: GetReferenceList
« Reply #3 on: November 10, 2011, 01:13:27 am »
If I were you I would use Repository.SQLQuery() to get a list of all elements/connectors/diagrams/... you need, and start from there.
In SQL it's pretty easy to check whether something is used or not...

Geert