Bug report - problems in dxf export
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Bug report - problems in dxf export
It works in FreeCAD 0.14dev
Re: Bug report - problems in dxf export
It works in FreeCAD 0.14dev
Re: Bug report - problems in dxf export
works in 0.14dev version of FreeCAD
Re: Bug report - problems in dxf export
works in 0.14dev version of FreeCADjmsuomal wrote:Did you mean:normandc wrote:Possible fix in page 2: viewtopic.php?f=3&t=4285
"Edit -> Preferences -> Draft -> Import/Export -> Max Spline Segment was set at 5; increasing the numerical value of the setting solved the problem!"
Setting the Max Spline Segment to 10 or 99 - did not change anything.
Attaching a jpg to my post still does not work. Not even the same jpg as I was earlier able to upload.
Re: Bug report - problems in dxf export
works in freecad 0.14dev but not 0.13
Re: Bug report - problems in dxf export
works in freecad 0.14dev but not 0.13
Re: Bug report - problems in dxf export
It works in 0.14dev versions but not 0.13.
Upgrade FreeCAD and you will be able to get it to work.
Here is part of your camera frame in DXF
You will have to unzip it.
Jim
Upgrade FreeCAD and you will be able to get it to work.
Here is part of your camera frame in DXF
You will have to unzip it.
Jim
Re: Bug report - problems in dxf export
Thanks Jim, but does that zipped file really look good on your screen? And if it does, what viewer are you using to look it? I am looking it with irfanview and this file you attached looks just as faulty as anything I have exported. Is it just IrfanView that is showing it somehow wrong? On the otherhand the CNC machinist also said the DXFs that looked my screen like that di not come thru correctly.
This is how your DXF looks on my screen:
The rouded corners still show as sharp cut edges and the circular holes are replaced with straight lines.
I am also a little sceptical, how increasing the Max Spline Segment number could help here. On my DXFs there are no splines at all. Just straight lines, circles and arches.
Secondly, I checked the dxf exports I produced with the Draft->Shape2DView method. Here's the comparison of that output:
You can see that this is already closer to correct but there are problems with two cases:
(1) circular holes that i have cut with Part Design->Cut method come wrong (on top right and top middle parts)
(2) the fillets on random corners go wrong (on top and bottom right parts).
When I opened the faulty files with notepad I was able to locate whats the the problem there. The DXF ARC command has the start and end angles switched! The problematic corner in top right object there for example is written in DXF like this:
ARC
8
0
62
0
10
-182.749189377
20
-15.0478136539
30
0.0
40
5.0
50
-90.0 <<< this and
51
180.0 <<< this are wrong way around
0
If they are manually switched then that shape comes out correctly. It was also the same problem with the circular holes of the top middle object. In there the circle is for some reason formed with two arches of which one is similarly wrong as the fillet above. By doing these manual fixes I was able to produce good enough export files for my need now. Thanks for helping me out to get this far.
Jim, the file you had on your post is not using arc or circle commands but polylines. Thus the same manual fix is not working there. I think you produced that one directly from the 3D object without flattening it first. If someone can (1) locate and fix the arc start and end angle switching problem and (2) include automatic Draft->Shape2DView step in the DXF export, I think it would produce always perfect DXFs.
This is how your DXF looks on my screen:
The rouded corners still show as sharp cut edges and the circular holes are replaced with straight lines.
I am also a little sceptical, how increasing the Max Spline Segment number could help here. On my DXFs there are no splines at all. Just straight lines, circles and arches.
Secondly, I checked the dxf exports I produced with the Draft->Shape2DView method. Here's the comparison of that output:
You can see that this is already closer to correct but there are problems with two cases:
(1) circular holes that i have cut with Part Design->Cut method come wrong (on top right and top middle parts)
(2) the fillets on random corners go wrong (on top and bottom right parts).
When I opened the faulty files with notepad I was able to locate whats the the problem there. The DXF ARC command has the start and end angles switched! The problematic corner in top right object there for example is written in DXF like this:
ARC
8
0
62
0
10
-182.749189377
20
-15.0478136539
30
0.0
40
5.0
50
-90.0 <<< this and
51
180.0 <<< this are wrong way around
0
If they are manually switched then that shape comes out correctly. It was also the same problem with the circular holes of the top middle object. In there the circle is for some reason formed with two arches of which one is similarly wrong as the fillet above. By doing these manual fixes I was able to produce good enough export files for my need now. Thanks for helping me out to get this far.
Jim, the file you had on your post is not using arc or circle commands but polylines. Thus the same manual fix is not working there. I think you produced that one directly from the 3D object without flattening it first. If someone can (1) locate and fix the arc start and end angle switching problem and (2) include automatic Draft->Shape2DView step in the DXF export, I think it would produce always perfect DXFs.
Re: Bug report - problems in dxf export
I don't think infranview is a good choice to view dxf files....but I could be wrong.
I used LibreCAD, in which it looks OK ..... as far as I can see.
DXF is a crap format...deliberately stuffed by Auto CAD who don't want interoperability. A lot of people say dxf without realising that there are many different versions of DXF, most opensource applications work on very old versions, so dxf is always going to be problematic/limited.
Is there any chance the your supplier can use a different format? Probably not but you could ask.
Are you using a version of Windows?
I used LibreCAD, in which it looks OK ..... as far as I can see.
DXF is a crap format...deliberately stuffed by Auto CAD who don't want interoperability. A lot of people say dxf without realising that there are many different versions of DXF, most opensource applications work on very old versions, so dxf is always going to be problematic/limited.
Is there any chance the your supplier can use a different format? Probably not but you could ask.
Are you using a version of Windows?
Re: Bug report - problems in dxf export
The reverted arcs are corrected by the fix I linked! Nevermind that it's called splines. Have you upgraded FreeCAD to the latest unstable version available? It will help.
And seriously, IrfanView is a terrific freeware, but it's a raster image viewer, not a proper CAD program!
And seriously, IrfanView is a terrific freeware, but it's a raster image viewer, not a proper CAD program!