JUser: :_load: Unable to load user with ID: 19325
Tuesday, 11 June 2013 22:21

SVG Diagram Export Add-In

Written by
Rate this item
(26 votes)
Example SVG diagram export Example SVG diagram export

Enterprise Architect comes with very powerful import and export capabilities for models and diagrams. But what we have always been missing is an export format for diagrams that generates really portable vector graphics (and not just Windows-only metafiles). Nowadays, the most suitable candidate for such a graphics format is SVG (Scalable Vector Graphics), and so we decided to implement our own Add-In that can export a Enterprise Architect diagram to a SVG file.

This Add-In is hereby provided for free-use to the Enterprise Architect Community.


The Add-In requires an installation of Microsoft .NET Framework 4.

Install the Add-In

Exit Enterprise Architect (if it is running) and double click the provided Microsoft installer file EASVGExportSetupV102.msi.

By default, the Add-In is installed in the folder "%ProgramFiles%\Siemens\EA SVG Export", but you can change that in the first dialog.
Hit the button Next until the installation is finished.

In the control panel the Add-In can be located under the name "Enterprise Architect SVG Export" (for later removal)

Use the Add-In

Start Enterprise Architect and open any diagram, for example diagram "Implementation Model (PSM)" from the pre-installed Enterprise Architect Example Model.

Export the diagram in SVG format via menu item Extensions->Save Diagram as SVG... and in the following dialog choose a storage location for the SVG file. The name of the diagram is preset as default file name. The extensions menu item also available in the context menu of the diagram (mouse right click).

If you choose the file extension ".svgz" then a compressed (binary) SVG image is generated.

View the SVG files

Make sure you have Internet Explorer 10 or any other recent web browser (e.g. Firefox, Opera, ..) installed. Simply double click a SVG file and the diagram should be shown in a browser window.

Note: A compressed SVG image file (extension ".svgz") can not be opened via double click, unless you have an SVG editor program (e.g. Inkscape) installed that recognizes that file format.

Limitations and known issues

  • Hyperlinks are not "clickable" (show just as an image)
  • No fonts are embedded in the SVG files (like in PDF), the referenced fonts have to be installed on your system. That should not be a problem on Windows machines.
  • The export is not absolutely read-only. The advanced print option "Scale to 1 Page" of the diagram gets set during export.
  • Unfortunately, structure and grouping of the diagram contents is not preserved.
  • Color gradients are not supported
  • Not tested with Enterprise Architect versions less than 9.
  • Not tested with Windows 8

PLEASE NOTE: This Add-In is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY !!!

UPDATE 09 August 2013

We have released a new version V1.0.4 of this Add-In with the following changes:

  • Fixed some bugs that made the export crash on some diagram types (for example BPMN)
  • Optimizations to reduce the size of generated SVG files
  • Eliminations of (most) warnings during import of the SVG files in MS VISIO

With the new version all diagrams in the EAExample model should export without problems.

UPDATE February 24, 2014

Release V1.0.6 of the Add-In adds the following features:

  • We tried to embed some information (e.g. guid, note) about the diagram elements in the SVG file. The metadata is attached to <text> elements
  • (wrapped into SVG <desc> elements)
  • The SVG output can now be customized by a (optional) final XSL transformation. If a stylesheet named "SVGExport.xsl" is present in the installation folder, it is applied to the output. There are some example stylesheets pre-installed, see the file README.txt!
  • The Add-in offers a way to automate the SVG export of diagrams. There is a method provided that can be called from your C# code (see README.txt for details).
  • We now have a (quite liberal) license. If you scroll down the license terms during installation you will even find a email address for submitting feedback.

Siemens CT
Safety Team Graz

Read 63523 times Last modified on Tuesday, 25 February 2014 02:27
Siemens Safety Team Graz

A team of firmware engineers of Siemens AG who develop embedded firmware for failsafe automation modules.


  • Comment Link Tim O'Callaghan Thursday, 06 June 2019 07:37 posted by Tim O'Callaghan

    If this is open, Is it possible to make some or all of this code available via github or similar? as i would like to do something with SVG too.

  • Comment Link Aaron Brown Tuesday, 26 February 2019 15:59 posted by Aaron Brown

    Installed and used this tool, and i'm afraid it's not very accurate. The SVG file it created wasn't completely aligned with the document I had drawn in SPARX. text was larger than the container objects and ultimately was unusable. FYI.

  • Comment Link Siemens CT Safety Team Graz Thursday, 02 July 2015 15:50 posted by Siemens CT Safety Team Graz

    Kevin, these files are only delivered with version V1.0.6 of the add-in. You need do install that package!

  • Comment Link Kevin MacLean Wednesday, 01 July 2015 12:00 posted by Kevin MacLean

    Msi did not provide the example stylesheets or the readme txt - afraid I need both.

    Many thanks this looks very useful

  • Comment Link Per de Place Bjorn Thursday, 19 March 2015 10:15 posted by Per de Place Bjorn

    Thanks a lot for the hints on installation under Linux - it worked!

  • Comment Link Siemens CT Safety Team Graz Wednesday, 11 February 2015 08:53 posted by Siemens CT Safety Team Graz

    You just need the DLL file SVGExport.dll, it should be located in folder "C:\Program Files\Siemens\EA SVG Export" on a windows (32bit) machine after installation of the Add-in.

    For a manual installation, you can follow the instructions at http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/deployingaddins.html

    1. Copy the DLL SVGExport.dll to your computer

    2. register the .NET DLL:
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe SVGExport.dll /codebase

    3. In the registry, add a new entry under the location "HKEY_LOCAL_MACHINE\Software\Sparx Systems\SVGExport" as described (32bit Windows)
    The key value for this Add-in is "SVGExport.EAPlugin"

  • Comment Link Per de Place Bjorn Wednesday, 04 February 2015 11:58 posted by Per de Place Bjorn

    Hi; this plugin is exactly what I've been looking for. However, I am using EA on Linux/Ubuntu, under Wine. I seem not to be able to run the (msi) installer. Is there another (maybe manual installation) way of distributing the plugin, that I could benefit from?

  • Comment Link Jan Reich Friday, 29 August 2014 11:34 posted by Jan Reich

    This plugin provides what many teams have been missing the whole time ;)
    However, I'd like to use the automated version in my projects, but this is not possible since the assembly and its referenced assemblies are not signed.
    Is it possible to provide an update with signed assemblies?

  • Comment Link Siemens CT Safety Team Graz Friday, 16 May 2014 08:36 posted by Siemens CT Safety Team Graz

    make sure you download the "EA SVG Export Add-In V1.0.6" link! The other downloads are for the older version V1.0.4, for those who do not need the new functionality (I will remove them eventually)

  • Comment Link mike Thursday, 15 May 2014 15:34 posted by mike

    "The Add-in offers a way to automate the SVG export of diagrams. There is a method provided that can be called from your C# code (see README.txt for details)."

    The installation did not install a readme.text, only the dll

Login to post comments