Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: kotrick on September 15, 2014, 04:48:02 pm

Title: Api to get all open diagrams in EA
Post by: kotrick 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
Title: Re: Api to get all open diagrams in EA
Post by: qwerty 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.
Title: Re: Api to get all open diagrams in EA
Post by: kotrick 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.
Title: Re: Api to get all open diagrams in EA
Post by: Geert Bellekens 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
Title: Re: Api to get all open diagrams in EA
Post by: qwerty 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.