Login  Register

Re: Splines bug: DXF open - ID: 3393986

Posted by Rallaz on Sep 10, 2011; 11:41am
URL: https://forum.librecad.org/Splines-bug-DXF-open-ID-3393986-tp4771144p4789314.html

Dxli,
Sorry for taking so long to answer

I tested with this patch
+  if( sd.flags == 1 ) sd.flags = 8; // possible typo 11 != 1
and it works well.

I made some more test:
test1:
In librecad draw splines one closed & other open
save as test1.dxf
open with librecad with this patch works
open with autocad2012 all splines are open

test2:
in autocad2012 draw a closed spline using the method "control vertex"
draw another spline using the method "fit points"
save as test2.dxf
open with librecad: works well
open with an text editor the code 70 are "2059" & "3339"

I do not understand :-(

Another think about ACCEL1C11.dxf:
from DXF reference "code 210 = Normal vector (omitted if the spline is nonplanar)"

In ACCEL1C11.dxf is present so the flag "8 = Planar" should be placed