<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sep 16, 2018]]></title><description><![CDATA[<p dir="auto">Zach Buckner<br />
Is it possible to initiate SVG or DXF exports directly from the main OpenJSCAD editor/viewer (or the browser’s JavaScript console) or would I need to create a custom application to import the serializer npm module?<br />
2 comments<br />
2<br />
no plus ones<br />
no shares<br />
Shared publicly</p>
<pre><code>Jeff Gay
Hi +Zach Buckner
It seems to me that the command line interface might be a better choice. You can create the design via the website / desktop, and then convert to SVG / DXF via the CLI. Is this part of your workflow process?
</code></pre>
<p dir="auto">Zach Buckner<br />
Thank you, +Jeff Gay.  I tried using the CLI to export to SVG and received an error (see stacktrace below) and figured that meant the CLI was misconfigured or broken.  I just tried again, though, and successfully got a DXF export, which is encouraging!</p>
<p dir="auto">SVG export exception in case helpful:</p>
<pre><code>TypeError: cag._toCSGWall is not a function
    at /usr/local/lib/node_modules/@jscad/cli/node_modules/@jscad/csg/src/core/CAG.js:44:26
    at Array.map (native)
    at Object.union (/usr/local/lib/node_modules/@jscad/cli/node_modules/@jscad/csg/src/core/CAG.js:43:18)
    at mergeSolids2 (/usr/local/lib/node_modules/@jscad/cli/node_modules/@jscad/core/utils/mergeSolids.js:71:21)
    at prepareOutput (/usr/local/lib/node_modules/@jscad/cli/node_modules/@jscad/core/io/prepareOutput.js:20:14)
    at /usr/local/lib/node_modules/@jscad/cli/generateOutputData.js:116:28
    at process._tickCallback (internal/process/next_tick.js:103:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
</code></pre>
]]></description><link>https://openjscad.nodebb.com/topic/75/sep-16-2018</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 19:20:02 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/75.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2019 06:08:12 GMT</pubDate><ttl>60</ttl></channel></rss>