libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

DXF roundtrip issues r2000

Open rurban opened this issue 8 months ago • 1 comments

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: (7C) (2000/Ceco.NET-People-Men-Sm-471)
  • [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

rurban avatar Mar 05 '25 09:03 rurban

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.

rurban avatar Mar 05 '25 12:03 rurban

Hello,

Do you happen to have any news on this?

Thank you!

timoria21 avatar Sep 04 '25 06:09 timoria21

No, I'm a bit handicapped now for a few weeks

rurban avatar Sep 04 '25 15:09 rurban

Can you please bring this issue forward?

timoria21 avatar Oct 06 '25 07:10 timoria21

Still handicapped and in Australia until November

rurban avatar Oct 10 '25 20:10 rurban

Are you back to work? I'm blocked by this issue.

timoria21 avatar Nov 05 '25 11:11 timoria21

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: @.***>

rurban avatar Nov 05 '25 12:11 rurban