FreeCAD export to Autodesk DXF problem

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!
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

FreeCAD export to Autodesk DXF problem

Post by archang »

I creates shape 2D views of selected objects (Three views + Isometric view) in Draft workbench, the graphics is different to insert a new view of a part in the active deawing in Drawing workbench.
01.JPG
01.JPG (208.91 KiB) Viewed 2143 times
02.JPG
02.JPG (124.48 KiB) Viewed 2143 times
When I export to Autodesk DXF (Draft-Shape2DView and Drawing-PageView), the two dxf files's 2D graphics is broken in DraftSight V1R5.2, and the export dxf speed Drawing-PageView is slower than Draft-Shape2DView.
03.JPG
03.JPG (208.21 KiB) Viewed 2143 times
04.JPG
04.JPG (183.68 KiB) Viewed 2143 times
Why is the above situation? Please tell me the FreeCAD export Autodesk DXF feature properly? How to solve it?
Please help me, thank you!
a1.fcstd
(368.84 KiB) Downloaded 40 times
OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.3956 (Git)
Branch: master
Hash: a579bdce72564e1bc987023b1a7552b4bedb2da3
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD export to Autodesk DXF problem

Post by yorik »

Hm there are indeed some problems there :)
There are a couple of known bugs in arcs direction in the DXF export code.

Usually using the Draft Downgrade tool twice on shape2dview objects helps (separates into individual edges) but in this case there is not much difference... It also seems that the code that should export bsplines and ellipses as segmented polylines isn't working properly.

I'll try to solve those problems ASAP
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD export to Autodesk DXF problem

Post by yorik »

Ok I finally took my courage to fix the DXF flipped arcs problems :)

In git commit 16ede0e I fixed the arc directions and elliptic arcs export code. There was another problem with this file, which is that the dimensions are very small, and the "max spline segment" DXF preference option couldn't go below 1. I now changed that preference option to a float value, so you can set it to something smaller. Now the above file exports beautifully to dxf:
ds.jpg
ds.jpg (43.16 KiB) Viewed 2098 times
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD export to Autodesk DXF problem

Post by archang »

I've updated FreeCAD source code, as follows:
Version: 0.15.3966 (Git)
Release date: 2014/08/28 16:30:34

But I can not be that file exports beautifully to dxf like you. Please tell me will I still need to adjust FreeCAD what options?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD export to Autodesk DXF problem

Post by NormandC »

archang wrote:I've updated FreeCAD source code, as follows:
Could you please post your full FreeCAD info like you posted in your first post, including the hash...
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD export to Autodesk DXF problem

Post by archang »

OS: Ubuntu 14.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.3966 (Git)
Branch: master
Hash: 67b54f805203271d95ffa6f07912bbc196ff2078
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD export to Autodesk DXF problem

Post by NormandC »

This confirms your version includes Yorik's commit (and two others made after that). https://github.com/FreeCAD/FreeCAD_sf_m ... its/master

I should also have asked you to provide your DXF output for review.
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD export to Autodesk DXF problem

Post by archang »

11.JPG
11.JPG (200.77 KiB) Viewed 2058 times
12.JPG
12.JPG (220.45 KiB) Viewed 2058 times
a2.dxf
(157.12 KiB) Downloaded 57 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD export to Autodesk DXF problem

Post by NormandC »

yorik wrote:There was another problem with this file, which is that the dimensions are very small, and the "max spline segment" DXF preference option couldn't go below 1. I now changed that preference option to a float value, so you can set it to something smaller.
I set it to 0.5 and got the same result as Yorik.
Attachments
FC_a1_dxf.png
FC_a1_dxf.png (109.19 KiB) Viewed 2052 times
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD export to Autodesk DXF problem

Post by archang »

I set "Max Spline Segment" to 0.50mm, but the result is still different than you. Please tell me what can I do? Thank you!
11.JPG
11.JPG (180.44 KiB) Viewed 2046 times
12.JPG
12.JPG (150.07 KiB) Viewed 2046 times
Post Reply