Skip to content

Control objects' num_entries disagree with the exported TABLE 70 on the ACadSharp saves #241

Open

Description

@DrunkOnJava

Spec: §20.4.59 VIEW CONTROL, §20.4.65 APPID CONTROL (BL numentries, DXF 70).

The DXF value oracle (#99, examples/dxf_oracle) pairs every control object with its TABLE record. On the 42 nextgis drawings every control's num_entries equals the exported group 70. On the ACadSharp samples/ saves (c30a97ce) two do not:

Record Releases DWG num_entries DXF 70 DXF entries of that table
VIEW_CONTROL (handle 6) R2000-R2010 12 (R2007: 11) 17 (R2007: 16) 1 VIEW
APPID_CONTROL (handle 9) R2000-R2010 42 (R2007: 37) 41 (R2007: 36) 41 APPIDs (R2007: 36)

The DXF Reference calls TABLE 70 the maximum number of entries, so neither side is obviously the count. Open question: what the DWG BL and the DXF 70 each count (erased entries? the control's handle list length?). Measure the control's handle stream (#139) before calling either a decoder bug.

Acceptance

  • Both values explained against the control's handle list on every release, and the oracle's scorer or the decoder corrected accordingly

Activity

  1. added
    type:research
    area:tables
    area:oracle
    priority:P2
    on Oct 26, 2026
  2. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status against the current oracle (CI run 40503137263 at 9292ba3, artifact corpus-measurement: the field-agreement matrix in oracle.log and oracle.tsv). Both fields still differ and neither is explained. The release range in the body is stale:

    • VIEW_CONTROL num_entries (group 70): different in 1 of 8 records on each of R2000, R2004, R2007, R2010 and R2013, and in 1 of 2 on R2018 (6 different, 36 equal over all releases). The body lists R2000 to R2010.
    • APPID_CONTROL num_entries: different in 1 of 8 records on each of R2000, R2004, R2007 and R2010 (4 different, 38 equal); R2013 and R2018 agree.

    The matrix gives counts, not handles, so the R2013 and R2018 VIEW_CONTROL records are not yet tied to a file (dxf_oracle --details names them). Acceptance is unchanged: both values explained against the control's handle list on every release.

  3. added
    release:R2000
    release:R2004
    release:R2007
    release:R2010
    release:R2013
    release:R2018
    on Oct 27, 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

    area:oraclearea:tablespriority:P2release:R2000release:R2004release:R2007release:R2010release:R2013release:R2018type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions