Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with XDATA in conversion DWG->JSON->DWG #1043

Open
michal-josef-spacek opened this issue Nov 19, 2024 · 0 comments
Open

Issue with XDATA in conversion DWG->JSON->DWG #1043

michal-josef-spacek opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@michal-josef-spacek
Copy link
Contributor

File: BLANK_English.dwg.gz
Entity: XDATA

Next object: 39 Handleoff: 0x1 [UMC] Offset: 393 [MC] @22271
==========================================
Object number: 39/27, Size: 16 [MS], Type: 79 [BS], Address: 22273
Add object XRECORD [39] Decode object XRECORD
bitsize: 82 [RL] @3.2
 Hdlsize: 0x2E, hdl_dat: @10.2 - @16.0 (16)
handle: 0.1.2E [H 5]
EED[0] size: 0 (end)
num_eed: 0
num_reactors: 1 [BL 0]
ownerhandle: (12.1.2) abs:44 [H 330]
reactors[0]: (4.1.2C) abs:44 [H* 330] => DICTIONARY
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 60
xdata_size: 0 [BL 0]
cloning: 1 [BS 280]
num_objid_handles: 0 [BL]
 padding: +6
 object_map{2E} = 39
 padding: 1/1 (6 bits)
crc: DAFB [RSx]
 check_CRC 22271-22289 = 18: DAFB == DAFB

diff in JSONs before and after conversion:

1327c1327
<       "xdata_size": 0,
---
>       "xdata_size": 2,

First JSON:

    {
      "object": "XRECORD",
      "index": 39,
      "type": 79,
      "handle": [0,1,46],
      "size": 16,
      "bitsize": 82,
      "ownerhandle": [12,1,2,44],
      "reactors": [
        [4,1,44,44]
      ],
      "xdata_size": 0,
      "xdata": [
  
      ],
      "cloning": 1
    },
@rurban rurban self-assigned this Nov 19, 2024
@rurban rurban added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants