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

TABLESTYLE.text_style json round trip #1042

Open
michal-josef-spacek opened this issue Nov 19, 2024 · 1 comment
Open

TABLESTYLE.text_style json round trip #1042

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

Comments

@michal-josef-spacek
Copy link
Contributor

Entity: TABLESTYLE
DWG File: Circle_Original.dwg.gz
Diff between first and second JSON:

<           "text_style": [5,1,17,17],
---
>           "text_style": [5,1,16,16],

dwgread output:

Next object: 34 Handleoff: 0x1 [UMC] Offset: 7700 [MC] @25125
==========================================
Object number: 34/22, Size: 253 [MS], Type: 504 [BS], Address: 25127
Warning: Unstable Class object 504 TABLESTYLE (0xfff) 34/0
Add object TABLESTYLE [34] Decode object TABLESTYLE
bitsize: 1927 [RL] @4.2
 Hdlsize: 0x61, hdl_dat: @240.7 - @253.0 (253)
handle: 0.1.7F [H 5]
EED[0] size: 0 (end)
num_eed: 0
num_reactors: 1 [BL 0]
ownerhandle: (8.0.0) abs:126 [H 330]
reactors[0]: (4.1.7E) abs:126 [H* 330] => DICTIONARY
xdicobjhandle: (3.2.162) abs:354 [H 360]
--common_size: 60
unknown_bits [1946 (60,1867,0) 244 TF]: 4254DD185B99185C990028000000000000F83F0000000000003E0FC00000000000004901028000000C1008070000C3001FDFF8000000C1003FBFF00000
0182007F7FE00000030400FEFFC00000060801FDFF8000000C1003FBFF000000182000000000000000C2020B0000001820100E000186003FBFF000000182007F7FE00000030400FEFFC00000060801FDFF
8000000C1003FBFF000000182007F7FE0000003040000000000000012404160000003040201C00030C007F7FE00000030400FEFFC00000060801FDFF8000000C1003FBFF000000182007F7FE0000003040
0FEFFC00000060804020BF1900B12888A888A88803

name: "Standard" [T 3]
flow_direction: 0 [BS 70]
flags: 0 [BS 71]
horiz_cell_margin: 1.5 [BD 40]
vert_cell_margin: 1.5 [BD 41]
is_title_suppressed: 0 [B 280]
is_header_suppressed: 0 [B 281]
rowstyles[rcount1].text_style: (5.1.11) abs:17 [H 7] => STYLE Standard
rowstyles[0].text_height: 4.5 [BD 140]
rowstyles[0].text_alignment: 2 [BS 170]
rowstyles[rcount1].text_color.index: 0 [CMC.BS 62]
rowstyles[rcount1].text_color.rgb: 0xc1000000 [CMC.BL 420]
text_color.method: 0xc1 ByBlock
rowstyles[rcount1].text_color.flag: 0x0 [CMC.RC]
rowstyles[rcount1].fill_color.index: 256 [CMC.BS 63]
rowstyles[rcount1].fill_color.rgb: 0xc3000007 [CMC.BL 421]
fill_color.method: 0xc3 Truecolor
rowstyles[rcount1].fill_color.flag: 0x0 [CMC.RC]
rowstyles[0].has_bgcolor: 0 [B 283]
rowstyles[0].borders[0].linewt: -2 [BSd 274]
rowstyles[0].borders[0].visible: 1 [B 284]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 64]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 422]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[0].borders[1].linewt: -2 [BSd 275]
rowstyles[0].borders[1].visible: 1 [B 285]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 65]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 423]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[0].borders[2].linewt: -2 [BSd 276]
rowstyles[0].borders[2].visible: 1 [B 286]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 66]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 424]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[0].borders[3].linewt: -2 [BSd 277]
rowstyles[0].borders[3].visible: 1 [B 287]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 67]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 425]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[0].borders[4].linewt: -2 [BSd 278]
rowstyles[0].borders[4].visible: 1 [B 288]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 68]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 426]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[0].borders[5].linewt: -2 [BSd 279]
rowstyles[0].borders[5].visible: 1 [B 289]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 69]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 427]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[rcount1].text_style: (5.1.11) abs:17 [H 7] => STYLE Standard
rowstyles[1].text_height: 6 [BD 140]
rowstyles[1].text_alignment: 5 [BS 170]
rowstyles[rcount1].text_color.index: 0 [CMC.BS 62]
rowstyles[rcount1].text_color.rgb: 0xc1000000 [CMC.BL 420]
text_color.method: 0xc1 ByBlock
rowstyles[rcount1].text_color.flag: 0x0 [CMC.RC]
rowstyles[rcount1].fill_color.index: 256 [CMC.BS 63]
rowstyles[rcount1].fill_color.rgb: 0xc3000007 [CMC.BL 421]
fill_color.method: 0xc3 Truecolor
rowstyles[rcount1].fill_color.flag: 0x0 [CMC.RC]
rowstyles[1].has_bgcolor: 0 [B 283]
rowstyles[1].borders[0].linewt: -2 [BSd 274]
rowstyles[1].borders[0].visible: 1 [B 284]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 64]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 422]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[1].borders[1].linewt: -2 [BSd 275]
rowstyles[1].borders[1].visible: 1 [B 285]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 65]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 423]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[1].borders[2].linewt: -2 [BSd 276]
rowstyles[1].borders[2].visible: 1 [B 286]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 66]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 424]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[1].borders[3].linewt: -2 [BSd 277]
rowstyles[1].borders[3].visible: 1 [B 287]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 67]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 425]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[1].borders[4].linewt: -2 [BSd 278]
rowstyles[1].borders[4].visible: 1 [B 288]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 68]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 426]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[1].borders[5].linewt: -2 [BSd 279]
rowstyles[1].borders[5].visible: 1 [B 289]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 69]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 427]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[rcount1].text_style: (5.1.11) abs:17 [H 7] => STYLE Standard
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rowstyles[2].text_height: 4.5 [BD 140]
rowstyles[2].text_alignment: 5 [BS 170]
rowstyles[rcount1].text_color.index: 0 [CMC.BS 62]
rowstyles[rcount1].text_color.rgb: 0xc1000000 [CMC.BL 420]
text_color.method: 0xc1 ByBlock
rowstyles[rcount1].text_color.flag: 0x0 [CMC.RC]
rowstyles[rcount1].fill_color.index: 256 [CMC.BS 63]
rowstyles[rcount1].fill_color.rgb: 0xc3000007 [CMC.BL 421]
fill_color.method: 0xc3 Truecolor
rowstyles[rcount1].fill_color.flag: 0x0 [CMC.RC]
rowstyles[2].has_bgcolor: 0 [B 283]
rowstyles[2].borders[0].linewt: -2 [BSd 274]
rowstyles[2].borders[0].visible: 1 [B 284]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 64]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 422]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[2].borders[1].linewt: -2 [BSd 275]
rowstyles[2].borders[1].visible: 1 [B 285]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 65]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 423]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[2].borders[2].linewt: -2 [BSd 276]
rowstyles[2].borders[2].visible: 1 [B 286]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 66]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 424]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[2].borders[3].linewt: -2 [BSd 277]
rowstyles[2].borders[3].visible: 1 [B 287]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 67]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 425]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[2].borders[4].linewt: -2 [BSd 278]
rowstyles[2].borders[4].visible: 1 [B 288]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 68]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 426]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
rowstyles[2].borders[5].linewt: -2 [BSd 279]
rowstyles[2].borders[5].visible: 1 [B 289]
rowstyles[rcount1].borders[rcount2].color.index: 0 [CMC.BS 69]
rowstyles[rcount1].borders[rcount2].color.rgb: 0xc1000000 [CMC.BL 427]
color.method: 0xc1 ByBlock
rowstyles[rcount1].borders[rcount2].color.flag: 0x0 [CMC.RC]
 padding: +1
 object_map{7F} = 34
 padding: 23/1 (1 bits)
crc: E90F [RSx]
 check_CRC 25125-25380 = 255: E90F == E90F
@michal-josef-spacek
Copy link
Contributor Author

Funny is that previous one is fine (rowstyles[rcount1].text_style: (5.1.11) abs:17 [H 7] => STYLE Standard)

@rurban rurban self-assigned this Nov 19, 2024
@rurban rurban added the bug Something isn't working label Nov 19, 2024
@rurban rurban changed the title Issue with conversion DWG->JSON->DWG in text_style (TABLESTYLE) TABLESTYLE.text_style json round trip 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