Book a Demo

Author Topic: How to Find Which Diagrams Are Open  (Read 2967 times)

Brian Wilkinson

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
How to Find Which Diagrams Are Open
« on: August 28, 2008, 09:32:33 pm »
Is there a way of find which diagrams are open in the broswer window.

I don't seem to be able to find a property on a diagram that says if it open in the browswer or a collection of which diagrams are currently open.

Can any one help out?

                                  Brian

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to Find Which Diagrams Are Open
« Reply #1 on: August 28, 2008, 10:12:12 pm »
Good question Brian,

Without proof - I don't generally program against running instances of EA so I have not had to try this (yet) - I suspect you need to check the list of open 'tabs' for your diagram.

There might be some catches to this. In no particular order:
    /
  • This might not be the correct approach at all...
  • There does not seem to be any documented standard for tab names; you'd have to come up with something yourself, including some means of handling duplicate (unqualified) diagram names.
  • There are tabs in various places in EA; the documentation does not say how these are distinguished (or whether they are at all).
The things I am talking about are all Repository methods. Take a look at ActivateDiagram [just for a reference to the "tab" idea], ActivateTab, ClearOutput, CreateOutputTab, EnsureOutputVisible, IsTabOpen, OpenDiagram [for another reference to the "tab" attribute], RemoveOutputTab, SaveDiagram [which also references the "tab" of a diagram window], and WriteOutput [once again with a reference to "tab"].

Just to make the earlier point really clear, the above is a guess, and should be treated as such. Test everything...

David
No, you can't have it!