You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
R2007+ table entries: are the two bits after the prefix B 64-flag and B Xdep, or a lone BS xrefindex+1? #290
With the BL num_reactors read (#40), every R2007-R2018 table entry has exactly two bits between the object prefix and the record's own fields. §20.4.x prints three fields there for every release: B 64-flag, BS xrefindex+1, B Xdep, which R2000 and R2004 records hold.
tables::modern::read_entry_flags reads the two bits as B 64-flag, B Xdep and returns xrefindex+1 as 0. The corpus cannot tell that apart from a lone BS xrefindex+1:
The two bits are 1, 0 on all 676 R2007-R2018 table entries of the 32 drawings with a DXF twin. 1, 0 is also the BS code for 0.
The same entries' R2000 and R2004 saves read 64-flag set, xrefindex+1 0 and Xdep clear on all 402, so both readings give the values those releases hold.
Bit 16 of the exported group 70 is clear on every entry of the corpus, which rules out the swapped order (B Xdep, B 64-flag would set Xdep on every entry). Only the lone-BS reading stays indistinguishable. No drawing in the 19 local samples or in the public corpus (ci(corpus): measure the reader on public drawings fetched by pinned hash #225) has an xref-dependent table entry.
What settles it: a drawing saved as R2007 or later whose LAYER, LTYPE, STYLE, DIMSTYLE or BLOCK_RECORD table holds entries that came from an attached xref (names like XREF|Layer, group 70 bit 16 set), with an AutoCAD DXF export. If the second bit equals bit 16 of group 70 on those entries, the reading stands. If not, the two bits are something else and the field list is wrong.
examples/probe_table_prefix.rs already compares Xdep with bit 16 of group 70 on every entry, so it measures this once such a file is in the corpus.
Activity