How to get 2D export to Inkscape at high quality?

Logo of my app Theta Control:

logo.3dm (55.6 KB)

How do I get the 2D outline into Inkscape?

Formats that I tried:

  • AI (Adobe Illustrator): Inkscape fails import with an error message.

  • PDF: Results are very coarse. Splines get converted into segments of straight lines. This is not the quality that I’m looking for.

Try DXF with the ‘R12 lines and arcs’ scheme in the DXF export options.

1 Like

Try to import it as illustrator v9 or before (it’s an option in inkscape) or do a search for the Rhino svg exporter.

@Willem is the svg exporter yours or from @clement ?

1 Like

@BrianJ cold we add this as main request for the V6. You know, svg it’s an open source standard and it’s suitable for illustration and for vectors in browsers…
How much could you take add this simple feature?

1 Like

Yes please!

The request for SVG support has been logged for a while. Here’s a related YouTrack item that’s public for future reference…
http://mcneel.myjetbrains.com/youtrack/issue/RH-24165

It helps raise the priority of feature requests to add your votes here.

I tested the DXF option to InkScape before suggesting it and it appeared to work well. They save as SVG too.

1 Like

The AI file format does not work. I exported from Rhino having selected “Save Geometry Only”, assuming that this creates a very simple AI file.

When I import into Inkscape 0.48 / Windows 7, that fails with error messages:

  • Adobe Illustrator 9.0 and above (PDF based):

    Failed to load the requested file C:\Temp\logo.ai

  • Adobe Illustrator 8.0 and below (Postscript based):

    1. UniConvertor failed

    2. Failed to load the requested file C:\Temp\logo.ai

It seems that:

  • Rhino exports to Illustrator 8.0 and below format.

  • The tool UniConvertor conversion tool used by Inkscape has issues on Windows 7. See comments on Inkscape bug 745997. Inkscape 0.48 includes UniConvertor 1.1.5.

    A recommended workaround is to install UniConvertor 1.1.4 separately, and then do the conversion manually from the Windows command prompt:

    uniconv input.ai output.svg

    I have not yet tried that.

That causes non-circular curves to be approximated by line segments. Well, it looks OK, and I know that resolution can be tweaked. However, the line segments are not joined, probably due to limitations of the DXF format. This is a problem since it looks like line segments cannot be joined in Inkscape.

I was wondering if that would be an issue for you. The only other solution that comes to mind is using PDF with vector output but I understand about not wanting a ton of kinks.

If something else occurs to me I’ll be sure to post it.

1 Like

Didn’t try myself, but You can export as .dwg or .dxf and open it in the free DraftSight wich has .svg export.

It was written by @Willem. Here is the original post.

c.

The script doesn’t output splines, right?

I now converted the AI file to SVG using Illustrator. The result is nice: Curves got converted into smooth simple to edit splines. However, a light-weight tool is preferred. I didn’t yet try UniConvertor 1.4.

Hi Riccardo,

I wrote the script. There are still issues with converting certain types of curves. I myself did not use the exporter for a while now because I did not need svg anymore.
Back when I used it the results were very useful and smooth.

Cheers Willem

1 Like

Sadly, that link is dead. Suggested read for McNeel’s sysadmins: Cool URIs don’t change

Where else do I get the script?

With AI export broken in versions 5 and WIP, PDF export producing ugly kinks, and no SVG export, it seems impossible for me to share 2D drawings for laser cutting with partners and colleagues.

Have you tried DXF and / or WMF?
Inkscape reads both…

The DXF export, R12 Natural, that I tried produced garbage, though I may try other DXF export schemes.

WMF is full of kinks, so ugly that the result is useless:

If you want, you can give it a go, see my thread: Export to SVG challenge

This is what I get with a normal Illustrator export from Rhino…

OK, so you can reproduce the problem. The morphing is clearly visible when comparing the letters with those in the Rhino file.

Use ConvertToBeziers on your curves before exporting…

2 Likes

FWIW I have the rvb files here:
The setup file will alter the other script to offer a direct loop through inkscape to let it convert to a clean PDF.
ExportInkscapeSVG_01.04_alpha.rvb (40.4 KB)
SetupInkscapeSVGExport_01.rvb (7.3 KB)

HTH
-Willem

1 Like