Book a Demo

Author Topic: Image function to Custom SQL  (Read 6315 times)

Hermont

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Image function to Custom SQL
« on: August 24, 2016, 02:57:32 am »
I'd like to see a function that could receive a diagramID as parameter and return it's image to the document being generated.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Image function to Custom SQL
« Reply #1 on: August 24, 2016, 03:23:51 am »
Check the Hyperlink "Diagram Image". This might do what you ask for,

q.

Hermont

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Image function to Custom SQL
« Reply #2 on: August 24, 2016, 04:08:51 am »
Hi qwerty. My problem resides in the fact that my diagram is not in the same package as the one used to generate the document. For that reason I'm using a Custom SQL to retrieve it but I can't get the diagram image using this. Maybe I'm wrong. If I use the 'Diagram Image' Section on this fragment I'll get the diagram image that I need?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Image function to Custom SQL
« Reply #3 on: August 24, 2016, 04:15:07 am »
I can't help much with document generation, but the Diagram Image hyperlink replaces the link with an image of the diagram in the generated documentation.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Image function to Custom SQL
« Reply #4 on: August 24, 2016, 04:29:42 am »
Look into virtual documents.
You'll have to have either an element or a package that owns the diagram to make it easy.

Check this article for an example: https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/

Geert