AI to DXF or SVG

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

AI to DXF or SVG

jon_bondy
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

William Adams-2
Best way to get vector files I've found is to:

 - save as SVG
 - open in Inkscape

On Thu, Jun 15, 2017 at 3:18 PM, jon <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

Whosawhatsis
In reply to this post by jon_bondy
Inkscape always seems to fail for me in one way or another. This works, though: https://www.thingiverse.com/thing:69563



From: jon [hidden email]
Reply: OpenSCAD general discussion [hidden email]
Date: June 15, 2017 at 12:19:34
To: OpenSCAD general discussion [hidden email]
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

Hypher
In reply to this post by William Adams-2
You can use the attached Illustrator script that I built starting from the work of 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 <[hidden email]> wrote:

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

 - save as SVG
 - open in Inkscape

On Thu, Jun 15, 2017 at 3:18 PM, jon <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

paths_to_scad3.jsx (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

kintel
Administrator
In reply to this post by jon_bondy
> On Jun 15, 2017, at 15:18, jon <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

Neon22
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 <[hidden email]> 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
> [hidden email]
> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

alexgibson
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:[hidden email]] On Behalf Of Mark
Schafer
Sent: 16 June 2017 01:01
To: [hidden email]
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 <[hidden email]> 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
> [hidden email]
> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

algotruneman
In reply to this post by Neon22
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: AI to DXF or SVG

Greg Frost
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 <[hidden email]> 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
> [hidden email]
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org