This is a set of Archi scripts for generating simple humane images
from Archimate diagrams:
- Design with the Archimate modelling language notation
- Share diagrams containing just
lines and rectangles
(no special figures)
*This is not meant to export Archimate free-drawing views (Canvas or Sketch diagrams).*
- Archi 4.9.x or later
- The latest version of jArchi compatible with Archi 4.9.x or later
- The GraalVM JavaScript engine selected in
Archi
preferences (Scripting > JavaScript Engine
)- This is not required for recent versions of
Archi
, asGraalVM
is now the default JavaScript engine - Please note that supporting
Java
code is loaded byArchi
scripts
- This is not required for recent versions of
Please clone this repository under your jArchi scripts folder (Preferences >Scriting > Scripts folder:
): if you still don’t understand the procedure, please visit the jArchi wiki or forum.
You can then right-click on any diagram in Archi and explore available scripts (Scripts > humaneimage
).
There’s just a little bit of custom drawing happening with few hooks into Java, instead of “pure JavaScript”.
This generates PowerPoint shapes and the deck can be changed easily by non-technical users (accordingly to the audience and message to convey).
The main library is under lib/humaneimage.lib.js
and the scripts under the humageimage
folder are just interfaces to it.
Script | Description |
---|---|
ExportAllViewsToHumaneImages.ajs | Export all model diagrams to humane images |
ExportCurrentViewToHumaneImage_Cfg_Default.ajs | Export the current diagram to a humane image |
ExportCurrentViewToHumaneImage_Cfg_Override.ajs | Same as the above with options dialog |
ExportCurrentViewToPowerPoint.ajs | Export a view to PowerPoint (pptx format) |
ExportToHumaneImageModel.ajs | Export a view model for custom processing |
The best way to contribute is via a pull request.
I did not write the whole functionality from scratch:
- edraw2d.lib.jar is a utility class with a subset of Eclipse draw2d classes (no SWT dependencies)
- svgtopng.lib.jar is a utility class with bundled Apache Batik dependencies
archi2ppt.lib.jar
is a utility class leveraging Apache POI to generate PowerPoint files