Author Topic: Api to get all open diagrams in EA  (Read 4194 times)

kotrick

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Api to get all open diagrams in EA
« on: September 15, 2014, 04:48:02 pm »
Hello,
I want to get list of diagrams which are open in EA.
Can any one help?

Thank You

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Api to get all open diagrams in EA
« Reply #1 on: September 15, 2014, 07:30:54 pm »
I guess you can't get that.

Why would you need that? You can get the currently open diagram. All others are just tabs. That's the same as if the were in the explorer, but just with a shortcut.

-- Oh. Except when you make them float  :-/
q.
« Last Edit: September 15, 2014, 07:33:17 pm by qwerty »

kotrick

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Api to get all open diagrams in EA
« Reply #2 on: September 15, 2014, 07:45:19 pm »
Hello,

I want to find number of diagrams currently open in EA.Based on that need to do some further processing.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13233
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Api to get all open diagrams in EA
« Reply #3 on: September 15, 2014, 08:30:27 pm »
You could keep track of them yourself.
Tthere is an event for opening a diagram (EA_OnPostOpenDiagram) and an event for closing a diagram(EA_OnPostCloseDiagram).

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Api to get all open diagrams in EA
« Reply #4 on: September 15, 2014, 09:40:16 pm »
If you're going to send a feature request: it should not just the name of the open diagram be returned but also the physical dimension and position inside EA's window. Although I doubt seeing such functionality within the next 5 years.

q.