<?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 Help with slicing 3D objects to SVG vector graphic in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6318521#M132289</link>
    <description>&lt;P&gt;I am working on a DLP based 3D printer. I would like to slice my 3D drawing in AutoCAD (.dwg file) into multiple layers and save it as &lt;A href="https://en.wikipedia.org/wiki/Scalable_Vector_Graphics" target="_self"&gt;SVG&lt;/A&gt;. This method would avoid lossy export to STL file followed by &lt;A href="https://www.cs.cmu.edu/afs/cs/academic/class/15294t-s16/lectures/stl/stl.pdf" target="_self"&gt;complex slicing&lt;/A&gt;. In my opinion, complex slicing and tool path generation is not needed for DLP based printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to build a script in AutoCAD that would slice the 3D object along a plane (x, y, or z) and save it as a SVG file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is my understanidng that SVG is based on vectors and polygons. Thus, would it be possible to easily convert an AutoCAD drawing to SVG?&amp;nbsp; I came accross a post that uses VBA scripting in &lt;A href="https://forums.autodesk.com/t5/inventor-customization/inventor-sketchspline-to-svg-bezier/td-p/5499976" target="_self"&gt;Autodesk Inventor to slice a 3D drawing to SVG&lt;/A&gt;. He posted the script (attached) and a &lt;A href="https://www.youtube.com/watch?v=hefY46fyVvU" target="_self"&gt;YouTube video of the slicer&lt;/A&gt;. Based on this it seems it should be possible to do it in AutoCAD with LISP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still still new to AutoCAD and don't know much about LISP programming. Would anyone be able to help me write a script in AutoCAD for slicing the 3D objects to SVG? I would really aprpeicate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 16:32:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-10T16:32:44Z</dc:date>
    <item>
      <title>Help with slicing 3D objects to SVG vector graphic</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6318521#M132289</link>
      <description>&lt;P&gt;I am working on a DLP based 3D printer. I would like to slice my 3D drawing in AutoCAD (.dwg file) into multiple layers and save it as &lt;A href="https://en.wikipedia.org/wiki/Scalable_Vector_Graphics" target="_self"&gt;SVG&lt;/A&gt;. This method would avoid lossy export to STL file followed by &lt;A href="https://www.cs.cmu.edu/afs/cs/academic/class/15294t-s16/lectures/stl/stl.pdf" target="_self"&gt;complex slicing&lt;/A&gt;. In my opinion, complex slicing and tool path generation is not needed for DLP based printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to build a script in AutoCAD that would slice the 3D object along a plane (x, y, or z) and save it as a SVG file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is my understanidng that SVG is based on vectors and polygons. Thus, would it be possible to easily convert an AutoCAD drawing to SVG?&amp;nbsp; I came accross a post that uses VBA scripting in &lt;A href="https://forums.autodesk.com/t5/inventor-customization/inventor-sketchspline-to-svg-bezier/td-p/5499976" target="_self"&gt;Autodesk Inventor to slice a 3D drawing to SVG&lt;/A&gt;. He posted the script (attached) and a &lt;A href="https://www.youtube.com/watch?v=hefY46fyVvU" target="_self"&gt;YouTube video of the slicer&lt;/A&gt;. Based on this it seems it should be possible to do it in AutoCAD with LISP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still still new to AutoCAD and don't know much about LISP programming. Would anyone be able to help me write a script in AutoCAD for slicing the 3D objects to SVG? I would really aprpeicate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 16:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6318521#M132289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T16:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with slicing 3D objects to SVG vector graphic</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6320295#M132290</link>
      <description>&lt;P&gt;Seem to be you need to use inventor, as far as I know , ACAD do not have the way to save as SVG.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 12:50:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6320295#M132290</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2016-05-11T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with slicing 3D objects to SVG vector graphic</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6320749#M132291</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/58962"&gt;@devitg﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think Inventor also supports SVG. The VBA script posted by the other users manually writes all the shapes/path/objects to the SVG file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to write/code a SVG file. It is very simple. Given all the various shapes, vectors, polygons, vertices, etc, I can write the SVG file. However, I am not really sure how to get all the object infromation from a DWG file from a 2D sketch. I have this information I can write the SVG file. I can't figure out how to slice a 3D object along a plane in AutoCAD and get the 2D sketcch for that slice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing if someone with AutoCAD LISP expereince would know how to do this, I can work with them to write the SVG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 15:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-with-slicing-3d-objects-to-svg-vector-graphic/m-p/6320749#M132291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-11T15:30:41Z</dc:date>
    </item>
  </channel>
</rss>

