Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Stenvang on September 08, 2014, 11:34:16 pm

Title: Is it possible to access the image manager from c#
Post by: Stenvang on September 08, 2014, 11:34:16 pm
As the name of the question says: Is it possibly to access the image manager from c#?

Why?
I would like to copy/paste the images into a word document through code or read them into a word document from their file path also through code.
Title: Re: Is it possible to access the image manager fro
Post by: qwerty on September 09, 2014, 05:12:05 am
You need to access t_image with a query. Use something like
Code: [Select]
Repository.SQLQuery("SELECT * FROM t_image WHERE ...");
q.
Title: Re: Is it possible to access the image manager fro
Post by: Tehila1 on September 09, 2014, 06:27:52 pm
May this link will help you to insert the image from EA to Word document:
  
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...
Title: Re: Is it possible to access the image manager fro
Post by: Stenvang on September 09, 2014, 06:35:44 pm
Quote
May this link will help you to insert the image from EA to Word document:
  
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...

Thx for your reply but that link is actually my own question and solution to handling pictures in EA. The question of this topic is not how to handle the pictures, but how to access them from the image manager in EA.
Title: Re: Is it possible to access the image manager fro
Post by: qwerty on September 09, 2014, 08:00:12 pm
In the referenced thread you ask about the diagram image. So what do you mean by "image manager"?

q.
Title: Re: Is it possible to access the image manager fro
Post by: Stenvang on September 09, 2014, 10:16:50 pm
By "Image Manager" in meant exactly what you wrote in the first reply.
Using the SQLQuery gave me everything I needed cause the images contains the base64String so I can use that to convert to an image object in c#.

Ty!
Title: Re: Is it possible to access the image manager fro
Post by: qwerty on September 09, 2014, 11:10:55 pm
lol - would have been nice to recognize that in your reply above. Next time then  ;)

q.