Author Topic: Add Diagram image to Template using Automation and XML  (Read 3152 times)

pb17

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Add Diagram image to Template using Automation and XML
« on: February 24, 2024, 04:43:01 am »
Hello,

Good afternoon!

I am currently in the process of creating a fragment that includes both a table and diagrams. To accomplish this, I am utilizing a script that navigates the model and extracts information from various elements. Subsequently, this information is integrated into an XML structure to facilitate its utilization within the aforementioned fragment.

Regarding the diagrams, they are housed within multiple packages situated at different levels. While I can effortlessly access their information via the automation tool, I am encountering difficulties in incorporating them into the fragment. Despite delving into the automation guide and familiarizing myself with different tags and image assessment techniques, I have yet to devise a viable solution.

Has anyone encountered a similar challenge before? Any insights or guidance would be greatly appreciated.

Thank you in advance for your assistance.

Warm regards,

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13233
  • Karma: +551/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add Diagram image to Template using Automation and XML
« Reply #1 on: February 24, 2024, 06:37:24 pm »
I don't think you can add a diagram image in a script fragment.

With a document script fragment that should be possible. See https://sparxsystems.com/enterprise_architect_user_guide/16.1/model_publishing/document_script_fragment.html

Geert

pb17

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Add Diagram image to Template using Automation and XML
« Reply #2 on: February 27, 2024, 07:39:35 pm »
Hi Geert!

Thank you for the feedback.
I will check this solution and try to apply it to my case.