libredwg
libredwg copied to clipboard
decode 2018 Section Page Map
D:\emsdk\libredwg\test\test-data\2018>dwg2dxf taihe.dwg taihe.dxf
Reading DWG file taihe.dwg
Warning: checksum: 0x32761371 (calculated) mismatch
Warning: Invalid section_array_size: [8827].792575 != 8830
Warning: Invalid last_section_address: 18148ce != 1771280
Warning: section_map_id 8830 not found
Warning: Add section_map_id [8828] 8830 => address 0x174a220
Warning: Repair invalid section_info_id [8827]: => 8829
Warning: Add section_info_id [8829] 8829 => address 0x101680152
ERROR: Invalid Data Section Page Map type 0x97f73a7f != 0x4163003b
ERROR: Failed to decode file: taihe.dwg 0x100
READ ERROR 0x100
Usage: dwg2dxf [-v[N]] [--as rNNNN] [-m|--minimal] [-b|--binary] DWGFILES...
D:\emsdk\libredwg\test\test-data\2018>
The Section Page Map is already corrupt. Wrong crc, and then a fatal error at Section[5889]. No idea, sorry. Can AutoCAD open it? ODA can convert it, so it seems to be a LibreDWG error
yes acad can be opened
So it's an extremely good testcase. Thanks a lot!