haplokuon / netDxf

.net dxf Reader-Writer
MIT License
995 stars 405 forks source link

The leader line of annotation bends in the opposite direction after loading and saving the DXF file. #297

Open kyosukeSakurai opened 3 years ago

kyosukeSakurai commented 3 years ago

There is an annotation with a leader which is composed by two points. The leader line of annotation bends in the opposite direction after loading and saving.

image

Sample data: sample_L.zip

Sample code:

var dxfDoc = DxfDocument.Load( filename );
dxfDoc.Save( filename );

I don't know the specifications, so I tried to add one as the following. Is there a correct solution?

Line 4509 on DxfReader.cs

// In case of 2 points, remake Hook.
  if (wcsVertexes.Count == 2)  
 {  
       hasHookline = true;
 }