Modelio icon indicating copy to clipboard operation
Modelio copied to clipboard

Exporting Diagrams as Images via Scripting

Open RezaOnGithub opened this issue 10 months ago • 1 comments

I'm trying to export a subset of diagram to PNGs in batch. The problem is, I can't seem to find an object from Jython that provides an IDiagramHandle or similar. (not sure, as far as I could find via Eclipse) Is exporting diagram images via scripting possible? Thanks in advance!

RezaOnGithub avatar Apr 12 '25 20:04 RezaOnGithub

Modelio provides an official API unfortunatly this latter does not contain any service regarding diagram export.

Now what could be possible...

You can take a look at the Java code of the diagram export located here: org.modelio.diagram.editor.handlers.SaveImageHandler
Maybe a Jython scrip could use this as entry point...

etiennebrosse avatar May 05 '25 18:05 etiennebrosse