LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
940 stars 229 forks source link

indxf binary: Invalid DXF group code :6400 #835

Closed gf0126 closed 7 months ago

gf0126 commented 1 year ago

Hi,I have a dxf file used dxf2dwg.exe to convert it to dwg,but it ocuurs error as follows:

D:\code\dwg\libredwg>dxf2dwg.exe 456.dxf Reading DXF file 456.dxf ERROR: Invalid DXF group code: 6400 ERROR: Failed to decode DXF file: 456.dxf

READ ERROR 0x800 456.dxf

and I give the dxf file ,please give me an answer! 456.zip

rurban commented 1 year ago

This is a binary DXF. They are not yet supported. Normally DXFB import fails much earlier

gf0126 commented 1 year ago

Hello, I have changed the dxf. Then use the dxf2dwg.exe,It occurs error:Invalid DXF Code 294 for DIMSTYLE. I give the dxf file, please give me a reply! Thank you! 456(0909).zip

rurban commented 7 months ago

This has a DXF code of 294 with a DIMSTYLE, which accoring to my specs is invalid. Esp. with r2000. Maybe it's valid for r2010, because there exists a DIMTXTDIRECTION with code 295, but I have no docs for that, which boolean field that could be.

rurban commented 7 months ago

Fixed with 0.13.1, at least the ASCII DXF part

rurban commented 7 months ago

And the binary part seems to be corrupt. 0x1900 as code is invalid, and therefore rejected