libredwg
libredwg copied to clipboard
DXF roundtrip issues r2000
check with dxf-check:
- [x] AcDbViewportTable on out_dxf blank_2000.dwg: Object improperly read: AcDbViewportTable (8) the dxf is written as 2 VPORT 70 2 (num_entries), but with NULL entries it must be 1. needs a dxf TABLE_WRITE_FIXUP_NUMENTRIES
- [ ] Object improperly read: AcDbHatch
- [ ] CELLSTYLEMAP cannot be encoded, because the TABLESTYLE is missing, because unstable. When we add TABLESTYLE to the DXF (which is safe to do <r2010), we still get Object of class AcDbCellStyleMap can't be cast to AcDbEntity. (2000/Circle)
- [x] duplicate VPORT_CONTROL.entries (sample_2000)
- [ ] Object of class AcDbViewportTableRecord can't be cast to AcDbEntity (sample_2000)
- [ ] Object of class AcDbRegAppTableRecord can't be cast to AcDbEntity (2000/A)
- [ ] Object of class AcDbVXTable can't be cast to AcDbDictionary (citroen_from_cadforum.cz)
- [ ] Object was permanently erased:
- [x] Wrong blockname output, leading to missing INSERT.block_header with anonymous blocks (e.g. *X2 => *X)
more issues:
- CRC does not match (example_2000)
- x LAYER.flag0 0x3f0 => 0 (sample_2000). with json-check it is => 0x3e0
- x LTYPE->size off by one in 1 of 3. Not TV-ZERO
after in_dxf, the num_entries are wrong: ../to/r13/from_ezdxf/bin_dxf_r13.dwg
Encode object LTYPE_CONTROL handle: 0.1.5 [H 5] num_eed: 0 bitsize: 0 [RL 0] num_reactors: 0 [BL 0] num_entries: 2 [BS 70] -bitsize calc from HANDLE_STREAM 72 @9.0 (1588) ownerhandle: (4.0.0) abs:0 [H 330] xdicobjhandle: (3.0.0) abs:0 [H 360] entries[vcount][0]: (2.1.16) abs:22 [H* 0] entries[vcount][1]: (2.1.16) abs:22 [H* 0] byblock: (3.1.14) abs:20 [H 0] bylayer: (3.1.15) abs:21 [H 0]
should be 1. same for LAYER_CONTROL, VPORT, APPID (6 instead of 3). So it looks like the entries are added twice.
Hello,
Do you happen to have any news on this?
Thank you!
No, I'm a bit handicapped now for a few weeks
Can you please bring this issue forward?
Still handicapped and in Australia until November
Are you back to work? I'm blocked by this issue.
Not yet, almost. On my 46th hour of my trip back. Train delayed
Reini Urban
David J. Harris @.***> schrieb am Mi., 5. Nov. 2025, 13:33:
timoria21 left a comment (LibreDWG/libredwg#1091) https://github.com/LibreDWG/libredwg/issues/1091#issuecomment-3490713809
Are you back to work? I'm blocked by this issue.
— Reply to this email directly, view it on GitHub https://github.com/LibreDWG/libredwg/issues/1091#issuecomment-3490713809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKGUNL56ZEEUOA3J6FTH333HOTZAVCNFSM6AAAAABYLTFI52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJQG4YTGOBQHE . You are receiving this because you were assigned.Message ID: @.***>