Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: AlecJames 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 (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?
-
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
-
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.
-
Hello AlecJames,
Now EA natively supports exporting as SVG. Please try to save the diagram image with specifying the extension to .svg.
HTH,
-
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.
-
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 (https://sparxsystems.com/enterprise_architect_user_guide/14.0/automation/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.
-
we submitted feature request - support SVG for API function PutDiagramImageToFile() - early this year.
Response from the support team:
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.
-
That's the usual prompt. They have a deal with Santa.
q.
-
we submitted feature request - support SVG for API function PutDiagramImageToFile() - early this year.
Good to know, thanks for the information.
-
This in now implemented with release candidate build 1702 - Thanks Sparx!