View Issue Details

IDProjectCategoryView StatusLast Update
0001743File formatspublic2015-01-26 14:20
Reportermihlit Assigned Toshoogen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSFedoraOS Version20
Summary0001743: dxf import/export does not work
DescriptionI've tried to import attached dxf file (rib.dxf). It looks like import goes well (no error message), but the result is far from the original (wing rib with lightening holes). It uses curves and they go very wrong. See attached image (rib.png) for how the result looks and how it should look. Importing it for example in librecad works correctly, also online dxf viewer (https://gallery.proficad.com/tools/autocad-viewer.aspx) shows correct result.

I've also tried exporting something to check whether freecad understands its own exports. I've tried a cut from a circle - a rectangle with a half circle on the opposite sides - a triangle loft. The cut looks like +- boat from behind. But when it's imported, there are no curves, just an approximation from a few lines. Attached cut.fcstd and cut.png
Steps To ReproducePart one - importing the rib.
1) File - Open - rib.dxf

Result: way too curvy, see attached picture how it should look.

Part two - export-import
1) File - Open cut.fcstd
2) select Model -> cut -> Loft_cs
3) File - export -> cut.dxf
4) File - open -> cut.dxf

Result: no curves, just 8 lines shape, see attached picture
Additional InformationFreeCAD 0.14.3702
TagsNo tags attached.
FreeCAD Information

Relationships

parent of 0001934 closed FreeCAD OCCT algorithms can't handle zero derivatives 

Activities

mihlit

2014-09-12 19:58

reporter  

rib.dxf (30,515 bytes)   
rib.dxf (30,515 bytes)   

mihlit

2014-09-12 19:58

reporter  

rib.png (72,136 bytes)   
rib.png (72,136 bytes)   

mihlit

2014-09-12 20:00

reporter  

cut.fcstd (187,329 bytes)

mihlit

2014-09-12 20:01

reporter  

cut.png (48,544 bytes)   
cut.png (48,544 bytes)   

yorik

2014-09-12 22:01

administrator   ~0005094

You must play a bit with the DXF export options (look in preferences->Draft), you can probably get better results than that. But I'll have a look too when I have a little time

shoogen

2015-01-16 15:18

developer   ~0005660

can you tell where you got the rib.dxf?

mihlit

2015-01-16 18:57

reporter   ~0005661

Originally, I draw it in librecad, then I sent it to a guy with cnc milling machine to check it if he can use that. He said that it was ok, but it was made from too much lines, instead of paths and it would be ineffective (and expensive). So he fixed it in some software he uses and send it back. Unfortunately, I don't know what software he used.

shoogen

2015-01-20 17:18

developer  

dxf-spline-rib3.png (3,419 bytes)   
dxf-spline-rib3.png (3,419 bytes)   

Related Changesets

FreeCAD: master fe994efa

2015-01-02 20:05:27

yorik

Details Diff
Draft: Fixed import of DXF splines - fixes 0001743 Affected Issues
0001743
mod - src/Mod/Draft/importDXF.py Diff File

FreeCAD: master c05f7762

2015-01-20 17:59:04

shoogen

Details Diff
import dxf splines as Draft BezCurve if applicable

fixes 1743
Affected Issues
0001743
mod - src/Mod/Draft/importDXF.py Diff File

Issue History

Date Modified Username Field Change
2014-09-12 19:58 mihlit New Issue
2014-09-12 19:58 mihlit File Added: rib.dxf
2014-09-12 19:58 mihlit File Added: rib.png
2014-09-12 20:00 mihlit File Added: cut.fcstd
2014-09-12 20:01 mihlit File Added: cut.png
2014-09-12 22:01 yorik Note Added: 0005094
2014-09-12 22:01 yorik Assigned To => yorik
2014-09-12 22:01 yorik Status new => assigned
2014-09-21 22:46 yorik Severity major => minor
2015-01-02 19:29 yorik Changeset attached => FreeCAD Master master fe994efa
2015-01-02 19:29 yorik Status assigned => closed
2015-01-02 19:29 yorik Resolution open => fixed
2015-01-16 15:18 shoogen Assigned To yorik => shoogen
2015-01-16 15:18 shoogen Note Added: 0005660
2015-01-16 15:18 shoogen Status closed => feedback
2015-01-16 15:18 shoogen Resolution fixed => reopened
2015-01-16 18:57 mihlit Note Added: 0005661
2015-01-16 18:57 mihlit Status feedback => assigned
2015-01-17 09:59 shoogen File Added: dxf-spline-rib.png
2015-01-17 14:27 shoogen File Added: dxf-spline-rib2.png
2015-01-17 14:27 shoogen File Deleted: dxf-spline-rib.png
2015-01-20 17:18 shoogen File Added: dxf-spline-rib3.png
2015-01-20 17:19 shoogen File Deleted: dxf-spline-rib2.png
2015-01-20 20:24 shoogen Changeset attached => FreeCAD Master master c05f7762
2015-01-20 20:24 shoogen Status assigned => closed
2015-01-20 20:24 shoogen Resolution reopened => fixed
2015-01-26 14:20 shoogen Relationship added parent of 0001934