file Export multiple UML and BPMN diagrams

8 years 1 month ago #805 by pan
Currently, you have to open each diagram and click on "Save diagram on a file" button to export your diagrams. It can be boring to do it one by one.
You can download a Jython script for exporting multiple UML and BPMN diagrams at once from the Modelio Store.

How it works?
1 - Select a model element
2 - Launch the script
3 - Select an output folder, eventually filter by diagram types, and select an image format (PNG, JPEG or BMP)
4 - Export

Please note that all diagrams existing within the selected model element and within its owned elements will be generated (the script is recursive).

If you have any question or problems using this script, do not hesitate to reply to this topic.

Please Log in or Create an account to join the conversation.

8 years 1 month ago - 8 years 1 month ago #806 by chm
Thank you pan. :)

A little comment on the macro's code:
diagramService.getDiagramHandle(elt).saveInFile(outputFormat,filepath)

This works fine, but will save each diagram with a blank margin of 10 pixels surrounding it.
With Modelio 2.1.1, you may add the value of the margin as last parameter instead:

diagramService.getDiagramHandle(elt).saveInFile(outputFormat,filepath, 0)

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.037 seconds
^ Back to Top