Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ErwinAhlers on December 07, 2021, 05:41:31 pm
-
Hello,
I iterate through the whole model via the automation interface and extract data from some packages. I also take the diagram via the clipboard. If the related diagram is not shown in EA Program, it will be shown before copying to the clipboard. So at the end of my iteration I have many diagrams open.
It would be great to figure out through the automation interface that the diagram, I would like to copy, is currently not shown/visible to the user. In that case I could close it again after copying.
Unfortunately I haven't found anything in the automation interface that might give me the possibility to do this.
So ist it not realizeable what I want to do?
Regards
Erwin
-
No, there's unfortunately no way to figure out if a diagram is open or not.
I had the same problem a while ago; same annoying opening diagrams when trying to get the diagram image.
The solution I used was to export the package to XMI, including the diagram images.
For some reason EA doesn't need to open the diagrams in the GUI to be able to do that.
Diagram images are then saved to a package, using the diagram GUID as name.
Geert