libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

Fix of handling if in entity

Open michal-josef-spacek opened this issue 2 years ago • 3 comments

We need to fix handling id in entity. Stub here: https://github.com/LibreDWG/libredwg/commit/2a92ef3dcd151ef65d09a3e00334abcd453846cd This is length and string without termination as i understang.

Example: POINT1.DXF.gz POINT1.DWG.gz

michal-josef-spacek avatar Apr 19 '22 19:04 michal-josef-spacek

No, it's an ordinary handle as after R13. Just no code for ownership, only size and value. Fixed in work/preR13

rurban avatar May 10 '22 14:05 rurban

@rurban In example above: In DWG file is 0.4.1240100 In DXF file is 24

This is correct?

michal-josef-spacek avatar May 10 '22 14:05 michal-josef-spacek

No, 24 should be 0.1.36 (for 0x24) The order of opts fields after opts_r11 is probably not yet correct for some, esp. VIEWPORT.

rurban avatar May 11 '22 04:05 rurban

Actuall output is:

type: 2 [RCd]
Add entity POINT [14] Decode entity POINT
===========================
Entity number: 14, Type: 2, Addr: 7ea
flag_r11: 0x64 [RC 0]
          ELEVATION (04) HANDLING (20) PSPACE (40)
size: 31 [RS]
layer: 0 [H(RSd) 8]
opts_r11: 0x0 [RSx 0]
viewport: 4 [H(RC) 0]
handle: 0.1.24 [H 5]
extra_r11: 1 [RSd 0]
x: 1.000000 [RD 10]
y: 1.000000 [RD 20]
crc: DBD3 [RSx]

michal-josef-spacek avatar Dec 22 '22 18:12 michal-josef-spacek

No, 24 should be 0.1.36 (for 0x24)

You are saying that the handle is in decimal form. Are you sure?

I am looking to log output and that's in hexadecimal form. If it's ok, we could close this issue.

michal-josef-spacek avatar Jan 06 '23 12:01 michal-josef-spacek

It's hex, sorry. Seems to match, yes

rurban avatar Jan 06 '23 12:01 rurban