Skip to content

VISUALSTYLE on R2004/R2007 (72 records): flag-less layout with a different property count; trailing 182-254 bits admit no solution over BS/BD/CMC/B/RC #48

Closed

Description

@DrunkOnJava

#47 decodes VISUALSTYLE on R2010/R2013/R2018 by deriving the unique token sequence that closes every record on its string-stream start bit. R2004/R2007 store the same styles without the (value, flag) pairs and with a different property count (492-580 data bits vs 574-862). Verified prefix so far: BS type, BS lm, BS lq, BS cm, BD opacity, BD specular, CMC mono, BS, BS, BS, CMC, CMC - closes through 12 fields on all 24 records of arc_2004.dwg; the remaining 182-254 bits admit no solution over BS/BD/CMC/B/RC, so a token type is missing (possibly a count-driven sub-list). Tool: examples/probe_field_list.rs. Until solved, decode_object returns Unsupported and dispatch counts these as Unhandled.

Activity

  1. DrunkOnJava commented on Aug 30, 2026

    @DrunkOnJava
    OwnerAuthor

    PR #64 closes the R2004 half: 72/72 records, delta 0 on all 24 styles of each of arc_2004.dwg, circle_2004.dwg and line_2004.dwg. The layout is the flag-less generation — 30 fields, no (value, flag) pairs, is_internal_use_only as the record's final bit, and display_brightness as a BL (-50/50/0) where R2010 spends a BD. That BL is what the 182–254-bit spread was: full BL on Dim (+32), byte BL on Brighten (+8), 0 form on the other 22. No missing token type and no count-driven sub-list after all — the search failed because the R2010 property order does not carry over.

    Remaining scope for this issue is R2007 only, and it is blocked upstream, not by the field list:

    probe_object_layout on arc_2007.dwg panics with this version has no object-stream walk; probe_class_census reports no AcDb:Classes section. No R2007 object of any type reaches a decoder, so the corpus cannot say whether R2007 writes the flag-less list or the paired one. decode_object returns Unsupported there rather than guessing. The 72 R2007 VISUALSTYLE records (24 in each of the three *_2007.dwg files) are invisible to coverage_report for the same reason, so this band costs nothing in the ratio today.

    One residual budget on the R2004 side, documented in the module and ARCHITECTURE.md §7d.1a rather than guessed: 13 bits between edge_silhouette_width and edge_intersection_linetype hold the constant 0b0_0000_0001_0010 on all 72 records. Only the width is evidence; the internal boundaries are a reading (RC BS B BS), and an R2004 file with a non-default halo gap or isoline count would settle them.

  2. DrunkOnJava commented on Oct 21, 2026

    @DrunkOnJava
    OwnerAuthor

    Settled by #47 and #73. src/objects/acad_visual_style.rs documents the measured flag-less list shared by R14, R2000, R2004 and R2007 (R2007 adds one 2-bit slot), and the reason the R2004 list is not a guess (its doc comment, lines 103 to 222; ARCHITECTURE.md §7d.1a and §7d.1b). STATUS.md reports 456 of 456 corpus VISUALSTYLE records decoded on every release. The class is tracked to completion, including values against AutoCAD's DXF, in the classes-beyond-the-spec issue of the 0.3.0 milestone.

  3. added
    type:feature
    and removed on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions