enhancement request: implement DXF import/export using dxflib

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

enhancement request: implement DXF import/export using dxflib

clothbot
Hi Clifford and Marius,

When you get a chance, please have a look into possibly using RibbonSoft's (aka QCad) dxflib library for reading and writing DXF files:

http://www.qcad.org/dxflib.html

It's dual-licensed for commercial and GPL applications (see http://www.qcad.org/dxflib_doc_faq.html#2) so compatible with OpenSCAD source code.

I ask because the DXF exported by OpenSCAD works with QCad but appears to be a bit too bare-bones to work directly with Inkscape.  I am able to open the OpenSCAD-generated DXF in QCad and immediately save it back out to get the extra header info that Inkscape seems to need, but that's a bit too much of a kludge for command-line use.

Doing so will also get you a lot of the other DXF construct support for free.  Perhaps it'll help implicitly pull in some SVG import and/or export capabilities by way of the main Community Edition QCad code base.

Aside:  That projection(cut=true) function is really handy.
- See the "sliced" section of this Makefile:
        http://github.com/clothbot/eda/blob/master/openscad/libraries/avago/Makefile
- Scroll down to the "adns2610_render_part==7" section here:
        http://github.com/clothbot/eda/blob/master/openscad/libraries/avago/adns-2610.scad

Thanks!

Andrew.

--

"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/




Reply | Threaded
Open this post in threaded view
|

Re: enhancement request: implement DXF import/export using dxflib

kintel
Administrator
On Jun 21, 2010, at 23:16 PM, Andrew Plumb wrote:

> When you get a chance, please have a look into possibly using RibbonSoft's (aka QCad) dxflib library for reading and writing DXF files:
>
I made a mental note of this earlier and have now migrated that mental note into our TODO list.
The DXF code in OpenSCAD is not very pretty, so this might make sense in any case..

> I ask because the DXF exported by OpenSCAD works with QCad but appears to be a bit too bare-bones to work directly with Inkscape.
I just committed a fix to this specific problem and this now works at least for extremely simple models. Please test and report any issues.

~/= Marius

--
We are Elektropeople for a better living.





Reply | Threaded
Open this post in threaded view
|

Re: enhancement request: implement DXF import/export using dxflib

clothbot
Hi Marius,

Confirmed that the DXF output from yesterday's OpenSCAD build works in Inkscape.

Thanks!

Andrew.

On 2010-06-26, at 6:58 PM, Marius Kintel wrote:

> On Jun 21, 2010, at 23:16 PM, Andrew Plumb wrote:
>
>> When you get a chance, please have a look into possibly using RibbonSoft's (aka QCad) dxflib library for reading and writing DXF files:
>>
> I made a mental note of this earlier and have now migrated that mental note into our TODO list.
> The DXF code in OpenSCAD is not very pretty, so this might make sense in any case..
>
>> I ask because the DXF exported by OpenSCAD works with QCad but appears to be a bit too bare-bones to work directly with Inkscape.
> I just committed a fix to this specific problem and this now works at least for extremely simple models. Please test and report any issues.
>
> ~/= Marius
>
> --
> We are Elektropeople for a better living.
>
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad

--

"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/