Book a Demo

Author Topic: Import an external image on a EA.diagram  (Read 4446 times)

ALL_IN_ONE

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Import an external image on a EA.diagram
« on: September 23, 2010, 07:33:27 pm »
Hello folks,

I need a solution to add external image on the diagram.
I tried it with some work around, its not a solution but got to know some insights.

EA.DiagramObject boundObj = (EA.DiagramObject)dia.DiagramObjects.AddNew("", "");
boundObj.ElementID = ele.ElementID;
boundObj.Style = "DUID=B9DE8FF2;ImageID=191;";
boundObj.Update();
dia.DiagramObjects.Refresh();


If you notice in the above code snippet, the diagram object style is hard coded because I know the image Id. Those external Image IDs you can see it in Settings-->Images and then unhide the third column which has the Image ID of the external diagrams (Not UML Diagrams).

Hence Does any body know how to embed image on a EA Diagram ?

regards,
ALL_IN_ONE


ALL_IN_ONE

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Import an external image on a EA.diagram
« Reply #1 on: September 23, 2010, 11:16:26 pm »
Hello all,

Can Any body provide some solutions to this issue? it is urgent?

@EA admin  : I am a registered user of EA, and I have not recieved any reply till now?

regards,
ALL_IN_ONE

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Import an external image on a EA.diagram
« Reply #2 on: September 24, 2010, 05:42:36 am »
You may want to contact Sparx support directly.  This is a user forum so there is no guarantee that you will get answers.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Import an external image on a EA.diagram
« Reply #3 on: September 24, 2010, 03:09:41 pm »
ALL_IN_ONE,

I don't know the answer to your specific question, but I can tell you how I would try to find out:
- Start with an empty model
- Create the diagram and embedded image through the GUI
- Open the database and inspect what has been added by EA.
- Try to recreate the same result using the API.

If at all possible, running a trace on the database may seriously simplify the "inspect what has been added" part.

Geert