<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export topology in Tools</title>
    <link>https://community.cisco.com/t5/tools/export-topology/m-p/4925396#M3386</link>
    <description>&lt;P&gt;There is an exportPNG function. Needs a little work, but does work.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 02:31:45 GMT</pubDate>
    <dc:creator>lindsayg</dc:creator>
    <dc:date>2023-09-19T02:31:45Z</dc:date>
    <item>
      <title>Export topology</title>
      <link>https://community.cisco.com/t5/tools/export-topology/m-p/3826449#M482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to export the generated topology in a SVG file or other ?&lt;/P&gt;&lt;P&gt;I'd like to import it in a drawing software like Visio.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Alexandre&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 16:58:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/export-topology/m-p/3826449#M482</guid>
      <dc:creator>achelminski</dc:creator>
      <dc:date>2019-03-26T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export topology</title>
      <link>https://community.cisco.com/t5/tools/export-topology/m-p/4925396#M3386</link>
      <description>&lt;P&gt;There is an exportPNG function. Needs a little work, but does work.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 02:31:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/export-topology/m-p/4925396#M3386</guid>
      <dc:creator>lindsayg</dc:creator>
      <dc:date>2023-09-19T02:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export topology</title>
      <link>https://community.cisco.com/t5/tools/export-topology/m-p/4925558#M3387</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1594929"&gt;@lindsayg&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Do you have some code example using this function to share ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:46:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/export-topology/m-p/4925558#M3387</guid>
      <dc:creator>achelminski</dc:creator>
      <dc:date>2023-09-19T07:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export topology</title>
      <link>https://community.cisco.com/t5/tools/export-topology/m-p/4926286#M3388</link>
      <description>&lt;P&gt;Add this under next.js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            exportPNG: function() {
                // Declare topo to fix function
                var topo = this;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then just call topology.exportPNG()&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;To do that you add this function under app.js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;triggerTopologyDownload = function () {
     topology.exportPNG();
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then under index.html add something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;button title="Download Topology Image" onClick="triggerTopologyDownload();"&amp;gt;Download PNG&amp;lt;/button&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 23:12:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/export-topology/m-p/4926286#M3388</guid>
      <dc:creator>lindsayg</dc:creator>
      <dc:date>2023-09-19T23:12:36Z</dc:date>
    </item>
  </channel>
</rss>

