haplokuon / netDxf

.net dxf Reader-Writer
MIT License
993 stars 402 forks source link

open simple circle dxf from librecad #105

Open davidbirchwork opened 5 years ago

davidbirchwork commented 5 years ago

Calling DxfDocument.Load for this file returns null with no exceptions thrown and no error message shown.

Version check confirms it is a 2007 file

circle.txt

haplokuon commented 5 years ago

Your file contains an error in the dimension style entry. It contains a code 340 at line 2500 that, according to the official DXF documentation, corresponds to a "String representing hex object IDs". So, an hexadecimal value is expected but your file contains "Standard". This is a bug with librecad, my guess is that instead of writing the handle to the associated text style it just writes the name.