Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: JavaDev on March 11, 2014, 02:31:35 am
-
Hello developers,
I'am working with the EA Java API to retrieve informations in EA Projects.
In one UseCase i have to retrieve the images/icons which are used for each object in EA.
Is it possibile to access them with the Java API (for example as Base64 encoded string) ?
How stores EA the Images/Icons of objects?
Thank you in advance for any help!
-
You can query the t_image table via Repository.SQLQuery and read the Image column.
Have a look in my Inside book for more details.
q.
-
Thank you!
I tried it out. The Query i used is bellow:
SELECT * From t_image
I got a List with all used images, however i need the associated Elements too. The Element Object in the Java API dont't have anything like an Image ID. How i have to create the Query?
I read the free version of your book. There are a list of all tables in the free version. Is complete Database Schema as Image too?
-
Well, my book does not unveil all secrets, but quite a lot.
The image id is stored in DiagramObject.style where it is coded like ImageID=297227575;
q.
-
Thank you! ..
Thats helped me a lot!