Improvements to DXF importer.

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Improvements to DXF importer.

Post by keithsloan52 »

Matt Considine

Is looking into improving FC OpenSCAD import of DXF file by using the ezdxf python library https://ezdxf.readthedocs.io/en/stable/

There is a branch considine in the Alternate OpenSCAD Importer https://github.com/KeithSloan/OpenSCAD_Alt_Import
See also https://github.com/KeithSloan/OpenSCAD_ ... /issues/10

Matt would appreciate input from others and contribution of test files etc, if anybody is interested in helping.

Long term aim would be a wider adoption of ezdxf python library within FreeCAD.
Last edited by keithsloan52 on Sun Apr 02, 2023 7:26 am, edited 1 time in total.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Improvements to DXF importer.

Post by Roy_043 »

mconsidine
Posts: 125
Joined: Wed Jan 18, 2023 10:41 pm
Location: Randolph, VT USA

Re: Improvements to DXF importer.

Post by mconsidine »

Thanks for those links.

Fwiw, I'm making progress. I can import into FC a DXF that OpenSCAD can't handle. And I'm using the DXFs that are examples in the "tests" area of its source as hurdle cases. If there's a 2D DXF that someone has wanted to pull into FreeCAD or OpenSCAD but which has created problems - and can point me to it - that would be helpful.

mconsidine
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Improvements to DXF importer.

Post by keithsloan52 »

Matt's improved use of EZdxf library for OpenSCAD dxf importer is now merged into https://github.com/KeithSloan/OpenSCAD_Alt_Import
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Improvements to DXF importer.

Post by keithsloan52 »

mconsidine wrote: Wed Apr 05, 2023 11:24 pm Thanks for those links.

Fwiw, I'm making progress. I can import into FC a DXF that OpenSCAD can't handle. And I'm using the DXFs that are examples in the "tests" area of its source as hurdle cases. If there's a 2D DXF that someone has wanted to pull into FreeCAD or OpenSCAD but which has created problems - and can point me to it - that would be helpful.

mconsidine
@mconsidine - Matt Please can you look at issues 12 and 14 on my repro, thanks
Post Reply