discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

AI to DXF or SVG

F
fred_dot_u
Sun, Feb 3, 2019 1:11 AM

@daaron
I've located and installed the script you've suggested. It's certainly a
simple process and appears on my scripts list from the AI menu system.

The first time I tested it, I didn't use the Object/Path/Outline Stroke
sequence, but the primitives I created are probably paths anyway. The second
time, after re-reading your post, I followed the above sequence.

In both cases, the results are the same, a 1mm preview and a 0mm tall
render. I had to use linear_extrude() to create a solid.

I had to add a call to the (in this example) module octagon(); to generate
anything as there's no generation that's clear to me. I am far from a
proficient OpenSCAD user, however.

Am I missing something?

--
Sent from: http://forum.openscad.org/

@daaron I've located and installed the script you've suggested. It's certainly a simple process and appears on my scripts list from the AI menu system. The first time I tested it, I didn't use the Object/Path/Outline Stroke sequence, but the primitives I created are probably paths anyway. The second time, after re-reading your post, I followed the above sequence. In both cases, the results are the same, a 1mm preview and a 0mm tall render. I had to use linear_extrude() to create a solid. I had to add a call to the (in this example) module octagon(); to generate anything as there's no generation that's clear to me. I am far from a proficient OpenSCAD user, however. Am I missing something? -- Sent from: http://forum.openscad.org/
D
daaron
Mon, Feb 4, 2019 9:35 PM

Hey Fred, my bad - it is, of course, a 2D object and needs linear_extrude()
to make it 3D. Don't know what I was thinking ;)

And yes, the exported code is effectively a library; you need to add the
line indicated at the top of the generated comments (or "use" it from
another file) to generate the shape.

fred_dot_u wrote

In both cases, the results are the same, a 1mm preview and a 0mm tall
render. I had to use linear_extrude() to create a solid.

Hey Fred, my bad - it is, of course, a 2D object and needs linear_extrude() to make it 3D. Don't know what I was thinking ;) And yes, the exported code is effectively a library; you need to add the line indicated at the top of the generated comments (or "use" it from another file) to generate the shape. fred_dot_u wrote > In both cases, the results are the same, a 1mm preview and a 0mm tall > render. I had to use linear_extrude() to create a solid. -- Sent from: http://forum.openscad.org/
F
fred_dot_u
Mon, Feb 4, 2019 10:07 PM

Even though some have expressed dissatisfaction with Inkscape, I've been
using the Inkscape extension Paths to OpenSCAD for some time. It also needs
a bit of a massage when one has nested shapes, as all the shapes become
polyhedral codes. It's a straight-forward task to identify which ones should
be holes and which ones should be not-holes, then perform a difference as
appropriate.

I didn't play around with the AI plug-in to see how it handles holes, but
that will be attached to my list of experiments in the near future. If it's
easier than the above sequence, I have a new useful technique.

--
Sent from: http://forum.openscad.org/

Even though some have expressed dissatisfaction with Inkscape, I've been using the Inkscape extension Paths to OpenSCAD for some time. It also needs a bit of a massage when one has nested shapes, as all the shapes become polyhedral codes. It's a straight-forward task to identify which ones should be holes and which ones should be not-holes, then perform a difference as appropriate. I didn't play around with the AI plug-in to see how it handles holes, but that will be attached to my list of experiments in the near future. If it's easier than the above sequence, I have a new useful technique. -- Sent from: http://forum.openscad.org/