Author Topic: SVG export  (Read 4443 times)

AlecJames

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
SVG export
« on: May 10, 2023, 07:20:36 pm »
How can I export a diagram as svg?

I tried the svg addin from here https://community.sparxsystems.com/community-resources/706-svg-diagram-export-add-in but the manage addin dialog shows SVGExport: Error - Missing (0x80040154)       (and I cannot find any menu option to export or save as svg.  I expected it at Publish-->Save-->Save to file as svg)

this addin is quite old, 2013.  I don't know how I should have installed it, I just ran the EASVGExportSetupV104.msi, is there any other setup?

Is there another way?
EA Corporate 15.2

BobM

  • EA User
  • **
  • Posts: 144
  • Karma: +9/-0
    • View Profile
Re: SVG export
« Reply #1 on: May 10, 2023, 08:11:09 pm »
When that error occurs when there is a .net compatibility issue

If it used to work I doubt the issue is actually .net but it might be a EA64 bit issue when using the x32 plugin
However in your signature I notice you are still using 15.2

You might want to check on the plugin creator for a more recent compatible plugin

johann

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: SVG export
« Reply #2 on: May 10, 2023, 09:34:53 pm »
I have version V1.0.6 of the extension installed and run Enterprise Architect 16.1.1625 (32-bit) - it is still functional!

Note that the extension was built against the old Microsoft .NET Framework v4 - you require a corresponding runtime on your PC.

Takeshi K

  • EA User
  • **
  • Posts: 571
  • Karma: +35/-1
    • View Profile
Re: SVG export
« Reply #3 on: May 11, 2023, 10:14:21 am »
Hello AlecJames,

Now EA natively supports exporting as SVG. Please try to save the diagram image with specifying the extension to .svg.

HTH,
--
t-kouno

duncan.greenyer

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: SVG export
« Reply #4 on: May 11, 2023, 05:52:47 pm »
I would note that not everything is exported properly using SVG, custom tables for example don't export at all. Also the SVG that is exported goes not use grouping properly so do not edit nicely in tools like inkscape.

ea0223

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: SVG export
« Reply #5 on: May 11, 2023, 06:36:46 pm »
Is it possible to save diagrams to SVG using the Automation Interface yet? I tried using the PutDiagramImageToFile method (https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/project_2.html), like I would do with a .png file, with parameters (GUID, "filename.svg", 1) and it produces no file, but returns true which seems weird. EA version is 16.1.1622.
« Last Edit: May 11, 2023, 06:53:20 pm by ea0223 »

johann

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: SVG export
« Reply #6 on: May 12, 2023, 05:44:14 pm »
we submitted feature request - support SVG for API function PutDiagramImageToFile() - early this year.

Response from the support team:

Quote
Unfortunately we did not and do not make any promises about time frames for any feature request. While I personally believe it will be implemented at some point in the future, I can't offer you any kind of time frame.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: SVG export
« Reply #7 on: May 12, 2023, 07:14:47 pm »
That's the usual prompt. They have a deal with Santa.

q.

ea0223

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: SVG export
« Reply #8 on: May 12, 2023, 09:47:17 pm »
we submitted feature request - support SVG for API function PutDiagramImageToFile() - early this year.

Good to know, thanks for the information.

johann

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: SVG export
« Reply #9 on: September 10, 2024, 08:40:24 pm »
This in now implemented with release candidate build 1702 - Thanks Sparx!