discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

AI to DXF or SVG

J
jon
Thu, Jun 15, 2017 7:18 PM

I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I
loaded it into InkScape, and saved it as both SVG and DXF, but neither
file format would import successfully into OpenSCAD (I tried all 3 SVG
variants).  Anyone done this before with better results?  Any
recommendations?

Thanks!

Jon

I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? Thanks! Jon
WA
William Adams
Thu, Jun 15, 2017 7:31 PM

Best way to get vector files I've found is to:

On Thu, Jun 15, 2017 at 3:18 PM, jon jon@jonbondy.com wrote:

I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I
loaded it into InkScape, and saved it as both SVG and DXF, but neither file
format would import successfully into OpenSCAD (I tried all 3 SVG
variants).  Anyone done this before with better results?  Any
recommendations?

Thanks!

Jon


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Best way to get vector files I've found is to: - save as SVG - open in Inkscape - export to OpenSCAD using a plug-in: https://www.shapeoko.com/wiki/index.php/OpenSCAD#Interface_w.2F_Inkscape On Thu, Jun 15, 2017 at 3:18 PM, jon <jon@jonbondy.com> wrote: > I have an Adobe Illustrator file that I wish to import into OpenSCAD. I > loaded it into InkScape, and saved it as both SVG and DXF, but neither file > format would import successfully into OpenSCAD (I tried all 3 SVG > variants). Anyone done this before with better results? Any > recommendations? > > Thanks! > > Jon > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
W
Whosawhatsis
Thu, Jun 15, 2017 7:44 PM

Inkscape always seems to fail for me in one way or another. This works,
though: https://www.thingiverse.com/thing:69563

From: jon jon@jonbondy.com jon@jonbondy.com
Reply: OpenSCAD general discussion discuss@lists.openscad.org
discuss@lists.openscad.org
Date: June 15, 2017 at 12:19:34
To: OpenSCAD general discussion discuss@lists.openscad.org
discuss@lists.openscad.org
Subject:  [OpenSCAD] AI to DXF or SVG

I have an Adobe Illustrator file that I wish to import into OpenSCAD. I
loaded it into InkScape, and saved it as both SVG and DXF, but neither
file format would import successfully into OpenSCAD (I tried all 3 SVG
variants). Anyone done this before with better results? Any
recommendations?

Thanks!

Jon


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Inkscape always seems to fail for me in one way or another. This works, though: https://www.thingiverse.com/thing:69563 From: jon <jon@jonbondy.com> <jon@jonbondy.com> Reply: OpenSCAD general discussion <discuss@lists.openscad.org> <discuss@lists.openscad.org> Date: June 15, 2017 at 12:19:34 To: OpenSCAD general discussion <discuss@lists.openscad.org> <discuss@lists.openscad.org> Subject: [OpenSCAD] AI to DXF or SVG I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? Thanks! Jon _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
YA
Yona Appletree
Thu, Jun 15, 2017 7:47 PM

You can use the attached Illustrator script that I built starting from the work of https://github.com/anonlethal-jerk https://github.com/anonlethal-jerk. It has lots of (hopefully clear) options and will directly generate pretty decent OpenSCAD code with lots of metadata so you can easily work with the result. Just select the shapes you want to export and run the script.

~ Yona

On Jun 15, 2017, at 12:31, William Adams will.adams@frycomm.com wrote:

Best way to get vector files I've found is to:

On Thu, Jun 15, 2017 at 3:18 PM, jon <jon@jonbondy.com mailto:jon@jonbondy.com> wrote:
I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants).  Anyone done this before with better results?  Any recommendations?

Thanks!

Jon


OpenSCAD mailing list
Discuss@lists.openscad.org mailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

You can use the attached Illustrator script that I built starting from the work of https://github.com/anonlethal-jerk <https://github.com/anonlethal-jerk>. It has lots of (hopefully clear) options and will directly generate pretty decent OpenSCAD code with lots of metadata so you can easily work with the result. Just select the shapes you want to export and run the script. ~ Yona > On Jun 15, 2017, at 12:31, William Adams <will.adams@frycomm.com> wrote: > > Best way to get vector files I've found is to: > > - save as SVG > - open in Inkscape > - export to OpenSCAD using a plug-in: https://www.shapeoko.com/wiki/index.php/OpenSCAD#Interface_w.2F_Inkscape <https://www.shapeoko.com/wiki/index.php/OpenSCAD#Interface_w.2F_Inkscape> > > On Thu, Jun 15, 2017 at 3:18 PM, jon <jon@jonbondy.com <mailto:jon@jonbondy.com>> wrote: > I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? > > Thanks! > > Jon > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org <http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org> > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
MK
Marius Kintel
Thu, Jun 15, 2017 11:56 PM

On Jun 15, 2017, at 15:18, jon jon@jonbondy.com wrote:

I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants).  Anyone done this before with better results?  Any recommendations?

If you could provide an (as minimal as possible) example of an Illustrator file, and the 3 SVG variants in the form of a Github issue, that would be helpful in terms of debugging and fixing this.

-Marius

> On Jun 15, 2017, at 15:18, jon <jon@jonbondy.com> wrote: > > I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? > If you could provide an (as minimal as possible) example of an Illustrator file, and the 3 SVG variants in the form of a Github issue, that would be helpful in terms of debugging and fixing this. -Marius
MS
Mark Schafer
Fri, Jun 16, 2017 12:01 AM

This scad export extension for inkscape works very well.

On 6/16/2017 11:56 AM, Marius Kintel wrote:

On Jun 15, 2017, at 15:18, jon jon@jonbondy.com wrote:

I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants).  Anyone done this before with better results?  Any recommendations?

If you could provide an (as minimal as possible) example of an Illustrator file, and the 3 SVG variants in the form of a Github issue, that would be helpful in terms of debugging and fixing this.

-Marius


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


This email has been checked for viruses by AVG.
http://www.avg.com

This scad export extension for inkscape works very well. - nested boundaries, lines, solids, etc - https://www.thingiverse.com/thing:1065500 On 6/16/2017 11:56 AM, Marius Kintel wrote: >> On Jun 15, 2017, at 15:18, jon <jon@jonbondy.com> wrote: >> >> I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? >> > If you could provide an (as minimal as possible) example of an Illustrator file, and the 3 SVG variants in the form of a Github issue, that would be helpful in terms of debugging and fixing this. > > -Marius > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > --- > This email has been checked for viruses by AVG. > http://www.avg.com > >
AG
Alex Gibson
Fri, Jun 16, 2017 12:25 AM

Get the Inkscape plugin:  OpenSCAD DXF output.  Does what it says on the
tin ;)

https://www.thingiverse.com/thing:14221

-----Original Message-----
From: Discuss [mailto:discuss-bounces@lists.openscad.org] On Behalf Of Mark
Schafer
Sent: 16 June 2017 01:01
To: discuss@lists.openscad.org
Subject: Re: [OpenSCAD] AI to DXF or SVG

This scad export extension for inkscape works very well.

On 6/16/2017 11:56 AM, Marius Kintel wrote:

On Jun 15, 2017, at 15:18, jon jon@jonbondy.com wrote:

I have an Adobe Illustrator file that I wish to import into OpenSCAD.  I

loaded it into InkScape, and saved it as both SVG and DXF, but neither file
format would import successfully into OpenSCAD (I tried all 3 SVG variants).
Anyone done this before with better results?  Any recommendations?

If you could provide an (as minimal as possible) example of an Illustrator

file, and the 3 SVG variants in the form of a Github issue, that would be
helpful in terms of debugging and fixing this.

-Marius


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


This email has been checked for viruses by AVG.
http://www.avg.com

Get the Inkscape plugin: OpenSCAD DXF output. Does what it says on the tin ;) https://www.thingiverse.com/thing:14221 -----Original Message----- From: Discuss [mailto:discuss-bounces@lists.openscad.org] On Behalf Of Mark Schafer Sent: 16 June 2017 01:01 To: discuss@lists.openscad.org Subject: Re: [OpenSCAD] AI to DXF or SVG This scad export extension for inkscape works very well. - nested boundaries, lines, solids, etc - https://www.thingiverse.com/thing:1065500 On 6/16/2017 11:56 AM, Marius Kintel wrote: >> On Jun 15, 2017, at 15:18, jon <jon@jonbondy.com> wrote: >> >> I have an Adobe Illustrator file that I wish to import into OpenSCAD. I loaded it into InkScape, and saved it as both SVG and DXF, but neither file format would import successfully into OpenSCAD (I tried all 3 SVG variants). Anyone done this before with better results? Any recommendations? >> > If you could provide an (as minimal as possible) example of an Illustrator file, and the 3 SVG variants in the form of a Github issue, that would be helpful in terms of debugging and fixing this. > > -Marius > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > --- > This email has been checked for viruses by AVG. > http://www.avg.com > > _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
AR
Algot Runeman
Fri, Jun 16, 2017 2:11 PM

On 06/15/2017 08:01 PM, Mark Schafer wrote:

This scad export extension for inkscape works very well.

I second this recommendation. Good results for many polygons.

On 06/15/2017 08:01 PM, Mark Schafer wrote: > This scad export extension for inkscape works very well. > - nested boundaries, lines, solids, etc > - https://www.thingiverse.com/thing:1065500 I second this recommendation. Good results for many polygons.
GF
Greg Frost
Fri, Jun 16, 2017 8:56 PM

I have had good success just by saving as Dxf without any plugin. The key is to first select all points, and if you have any curves, insert enough extra points so that the curves are adequately represented, and then just convert all segments to straight lines. If all you have is straight lines, Inkscape's native dxf save seems to work.

On 16 Jun 2017, at 11:41 pm, Algot Runeman algot.runeman@verizon.net wrote:

On 06/15/2017 08:01 PM, Mark Schafer wrote:
This scad export extension for inkscape works very well.

I second this recommendation. Good results for many polygons.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I have had good success just by saving as Dxf without any plugin. The key is to first select all points, and if you have any curves, insert enough extra points so that the curves are adequately represented, and then just convert all segments to straight lines. If all you have is straight lines, Inkscape's native dxf save seems to work. > On 16 Jun 2017, at 11:41 pm, Algot Runeman <algot.runeman@verizon.net> wrote: > >> On 06/15/2017 08:01 PM, Mark Schafer wrote: >> This scad export extension for inkscape works very well. >> - nested boundaries, lines, solids, etc >> - https://www.thingiverse.com/thing:1065500 > I second this recommendation. Good results for many polygons. > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
D
daaron
Sat, Feb 2, 2019 11:18 PM

I know this thread is a couple of years old, but I just tried the
paths_to_scad3.jsx Illustrator script, and it was a breeze. No need to
install Inkscape (which I find very clunky) - instead just move the JSX file
to the Adobe Illustrator CS6⁩ ▸ ⁨Presets⁩ ▸ ⁨en_US⁩ ▸ ⁨Scripts⁩ folder.
Then, select the paths you want to export, and select File ▸ ⁨Scripts ▸
⁨paths_to_scad3
. Super easy, and the results are terrific.

Tip: if you have line art, select Object ▸ ⁨Path ▸ ⁨Outline Stroke to
create outline paths that work beautifully with the script. You don't even
need to use linear_extrude in scad!

Thanks!

Hypher wrote

You can use the attached Illustrator script that I built...

paths_to_scad3.jsx (28K)
<http://forum.openscad.org/attachment/21701/0/paths_to_scad3.jsx>

I know this thread is a couple of years old, but I just tried the paths_to_scad3.jsx Illustrator script, and it was a breeze. No need to install Inkscape (which I find very clunky) - instead just move the JSX file to the *Adobe Illustrator CS6⁩ ▸ ⁨Presets⁩ ▸ ⁨en_US⁩ ▸ ⁨Scripts⁩* folder. Then, select the paths you want to export, and select *File ▸ ⁨Scripts ▸ ⁨paths_to_scad3*. Super easy, and the results are terrific. Tip: if you have line art, select *Object ▸ ⁨Path ▸ ⁨Outline Stroke* to create outline paths that work beautifully with the script. You don't even need to use linear_extrude in scad! Thanks! Hypher wrote > You can use the attached Illustrator script that I built... > > paths_to_scad3.jsx (28K) > &lt;http://forum.openscad.org/attachment/21701/0/paths_to_scad3.jsx&gt; -- Sent from: http://forum.openscad.org/