03-26-2019 09:58 AM
Hi,
Is there a way to export the generated topology in a SVG file or other ?
I'd like to import it in a drawing software like Visio.
Thanks !
Alexandre
09-18-2023 07:31 PM
There is an exportPNG function. Needs a little work, but does work.
But a PNG is not something you can easily import into Visio. Good idea, I'm not sure how Visio handles importing of SVG. It might just come in as a single graphic, which is pointless.
09-19-2023 12:46 AM
09-19-2023 04:07 PM - edited 09-19-2023 04:12 PM
Add this under next.js
exportPNG: function() {
// Declare topo to fix function
var topo = this;
Then just call topology.exportPNG()
---------------------------------------------
To do that you add this function under app.js
triggerTopologyDownload = function () {
topology.exportPNG();
};
Then under index.html add something like this:
<button title="Download Topology Image" onClick="triggerTopologyDownload();">Download PNG</button>
The output is a little different to the actual graph view, as that exportPNG() function, changes some of the styling. But you can adjust it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide