Author Topic: Scripting to get all diagrams  (Read 1172 times)

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Scripting to get all diagrams
« on: December 23, 2017, 09:28:55 am »
To this point, I have been working on a selected or active diagram.  I would like to find all diagrams within my model and operate on them.  How would I get a collection of all diagrams within the model?

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Scripting to get all diagrams
« Reply #1 on: December 23, 2017, 09:46:57 am »
NvM.  Wouldn't you know it.  Right after I submit the question, I figure out the issue/method.  Sorry.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8482
  • Karma: +207/-26
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scripting to get all diagrams
« Reply #2 on: December 24, 2017, 06:28:03 pm »
For those stumbling onto this topic when searching for a solution, it would be nice if you included the actual solution as well :)

Geert

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Scripting to get all diagrams
« Reply #3 on: December 25, 2017, 08:48:52 am »
Sure.
   var sql = "select * from t_diagram"
   var xml = SQLQuery(sql)

The xml can then be parsed for diagram IDs, names, etc.