Book a Demo

Author Topic: Generate diagram image  (Read 5298 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Generate diagram image
« on: January 02, 2014, 09:33:44 pm »
Hello!
How can I insert to a generation document an image of an EA diagram via  EA API- and not by template which contains the image as diagram field?

Thanks!

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Generate diagram image
« Reply #1 on: January 03, 2014, 01:10:35 am »
Referring to the previous post, I  would like to know also how to get image of interaction and use-case elements.
Thank you!

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Generate diagram image
« Reply #2 on: January 03, 2014, 11:56:04 am »
There are a number of ways - but simplest is to use:
PutDiagramImageOnClipboard (string DiagramGUID, long Type)
See the Project Interface Class help page.
Otherwise see the DocumentGenerator Class topic (and use a template).

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Generate diagram image
« Reply #3 on: January 05, 2014, 11:53:46 pm »
Is there a way to paste a diagram image I have already in clipboard to a document via document generator?
Thank you!

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Generate diagram image
« Reply #4 on: January 08, 2014, 10:11:20 pm »
Hello!

How can I bring an interaction or use-case images into a document via EA document generator?
Can I do it with EA API without using a template?

Thank you!

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Generate diagram image
« Reply #5 on: January 09, 2014, 11:57:43 pm »
Not sure of your requirements but looks like a lot of document generation.  If you are outputting to word suggest you have a look at eaDocX (eaDocX.com) - these guys have been doing it for years could probably do what you want off the shelf. :)

EXploringEA - information, utilities and addins

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate diagram image
« Reply #6 on: January 13, 2014, 09:21:54 am »
Quote
How can I insert to a generation document an image of an EA diagram via  EA API- and not by template which contains the image as diagram field?

This question is effectively: "How can I do <anything> without using any of the methods provided for doing it?"

What is the problem with using a template with the diagram image as a field?