Author Topic: Parsing .archimate files and generating SVG  (Read 105 times)


  • Newbie
  • *
  • Posts: 1
Parsing .archimate files and generating SVG
« on: July 15, 2021, 09:23:34 AM »
We'd like to use .archimate models created by Archi in a Spring Boot opensource project. We need an operation to parse archimate models and generate SVG. Are there any libraries to do this? In which Maven repository can we find them? Or perhaps is it possible to publish them from project? Can Eclipse-RCP plugins be used in a web project without Eclipse-RCP dependencies? Thank you in advance.

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1558
  • Code Punk
    • Archi
Re: Parsing .archimate files and generating SVG
« Reply #1 on: July 15, 2021, 09:34:26 AM »
If you want to generate SVG diagrams from *.archimate files outside of Archi you'll find it difficult. Archi's SVG generation works like this:

1. Load the model into a GEF/Draw2d GraphicalViewer object with EditParts and Figures
2. Get the root Figure
3. Convert to SVG via Batik and other libraries

You'll need the Archi code and all of the Eclipse dependencies to do this.

Take a look here -

Another potential option is to use the Archi Command Line Interface which can run standalone and that could generate SVG files from models. However, we haven't implemented the SVG exporter in the ACLI yet.

Another possibility is to generate SVG diagrams from a model that is in the Open Exchange Format. Of course, you'd have to write your own parser and generator but it can be done and some people have done this.

Short answer - there are no standalone libraries.
« Last Edit: July 18, 2021, 09:54:52 AM by Phil Beauvoir »
If you value and use Archi please consider making a donation!