Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: mse on June 10, 2024, 07:56:35 pm

Title: What's the quickest way to export all diagram images (PNG) in a project at once?
Post by: mse on June 10, 2024, 07:56:35 pm
I would like to export all diagrams as PNGs in one go and store them in a folder so I can upload them to our confluence attachments all at once. How could I do this? I see there is an XMI export with a checkbox for "export images", but I don't need to do an XMI export right now. I just want the PNGs.
Title: Re: What's the quickest way to export all diagram images (PNG) in a project at once?
Post by: steen.jensen on June 10, 2024, 08:25:58 pm
I usully do an Diagram Report. Then I populate SharePoint or PowerPoint with those diagram I just want at the time
Title: Re: What's the quickest way to export all diagram images (PNG) in a project at once?
Post by: ea0522 on June 10, 2024, 08:32:24 pm
You could do a HTML export which also generates all images.
Title: Re: What's the quickest way to export all diagram images (PNG) in a project at once?
Post by: Geert Bellekens on June 10, 2024, 08:46:05 pm
There is also an option to export xmi with diagram images IIRC.

The advantage over the html export is that it generates them with a predictable name (using the guid)

Geert
Title: Re: What's the quickest way to export all diagram images (PNG) in a project at once?
Post by: Elpis on June 13, 2024, 07:09:29 pm
Another solution, if you are somehow familiar with code developing:
In a script or a model add-in, make a call to
Repository.GetProjectInterface().GetAllDiagramImagesAndMap( string Directory ) 

(see documentation on https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/project_2.html )