Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: pb17 on February 24, 2024, 04:43:01 am

Title: Add Diagram image to Template using Automation and XML
Post by: pb17 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,
Title: Re: Add Diagram image to Template using Automation and XML
Post by: Geert Bellekens 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 (https://sparxsystems.com/enterprise_architect_user_guide/16.1/model_publishing/document_script_fragment.html)

Geert
Title: Re: Add Diagram image to Template using Automation and XML
Post by: pb17 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.