brad / Inkscape-OpenSCAD-DXF-Export

Inkscape plugin that exports DXF files usable by OpenSCAD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R13 Support

nukadelic opened this issue · comments

How hard will it be to add R13 (AC1012) Support with spines and curves ? If you can't do it, how could I help or were do i get started ?

(edit) Here is what i found so far:
https://pypi.org/project/dxfwrite/1.2.1/
https://pypi.org/project/ezdxf/0.8.8/ ( R13/R14 upgraded to 2000 )

@nukadelic 🤔 I think for R13 support to be worth while (using ELLIPSE and SPLINE for ex.), we would need to start at the Inkscape level. Currently, we turn every object into a path before we get to Python, which turns those paths into LWPOLYLINEs. We would need to look at each object to see if there is a good R13 entity we can translate to and use that instead of a path. Is that what you are wanting to do? I ❤️ the idea of simplifying the DXF output by using a Python library, despite the fact that it complicates the inkscape plugin installation (I think installing the plugin using pip should take care of this though)

I just found out that Inkscape 48.5 can export to R13 out of the box, going to test it on the CNC to see if it works. The used program in the CNC machine I am targeting can only support DXF up to version R13, and it's very slow when dealing with older versions prior to R13 ( without curves there will be millions of points ). If that works I will keep using Inkscape v92 and have portable version v48 on my Desktop.

inkscape48 5

@nukadelic That's great! I hope that works, please report back if it does.

Just thought I would report here that the DXF R13 exports from Inkscape 0.48.5 work great for my Rofin laser engraver, thanks @nukadelic