Skip to content

R13: no AutoCAD-written AC1012 drawing in the public corpus #345

Open

Description

@DrunkOnJava

The 22 R13 drawings pinned by #323 show the crate reads AC1012 as those files' writers wrote it. They don't show that it reads R13 as AutoCAD R13 wrote it. The 1.0 bar (every release, values equal to AutoCAD's) needs at least one AC1012 drawing that AutoCAD R13 itself saved.

Why the current pins don't count (evidence in #323's ARCHITECTURE section):

  • The 21 Sovol3d drawings:
    • They carry a SUN object, which §20.4 gives to R2007 and later, so a writer newer than AutoCAD R13 produced them.
    • Their header pads the last slot with 1010 and sizes the section ceil(bits / 8) + 1, where AutoCAD (R14 evidence) pads 1111 and sizes it ceil(bits / 8).
    • Their four optional shorts hold -1, where AutoCAD writes arbitrary values.
    • The decoder's one-byte header tolerance is confined to AC1012 for this writer.
  • SketchUp's Cabin.dwg: writer unknown; SketchUp's DWG export is not AutoCAD.
  • No twin: AutoCAD can no longer save R13, so no DXF twin exists for any R13 file, and the planned AutoCAD re-saves (R13 opened and saved as R2000) check values through AutoCAD's own reader, not how AutoCAD R13 writes.

What closes this: one or more AC1012 drawings with documented AutoCAD R13 provenance, pinned by URL and sha256 in tools/corpus/pins.tsv like the others, never committed unless the licence allows. Good signals:

  • a 1994-1998 archive date, and $TDCREATE / $TDUPDATE in that span;
  • no class or object newer than R13;
  • the header padding and size rule AutoCAD uses on R14;
  • a public-domain or permissive source (US government archives such as HABS/HAER, university course material, period CAD libraries).

Until then, the R13 rows in docs/spec-coverage.md must not claim more than "closes on third-party AC1012 writers".

Activity

  1. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Search result (2026-10-26): AutoCAD-written AC1012 drawings exist publicly. Both sets were checked with this crate's probes built from feat/r13-reader at 1594999.

    Set A, public domain, recommended pin source: US Forest Service Region 6 engineering CAD library, ftp.fs.fed.us/pub/acad/dev/{roads,trails} (Wayback captures 2001-2017).

    • 122 AC1012 files, 19.9 MB.

    • Licence: public domain as US government work. The agency's "Public Domain Drawings" page calls them public property.

    • Provenance: the trails page says "These drawings are created in AutoCad Ver 13", and the roads page says Ver 13 and Ver 14. 57 files have $TDUPDATE on or before 1997-01-31, before R14 shipped.

    • Probes on all 122:

      • container: 0 failures;
      • header variables: 122/122 close;
      • handle map: 0 mismatches;
      • coverage: 337,805 decoded, 230 skipped, 7,201 errored (7,041 TEXT, 116 LEADER, 41 ATTDEF, 3 TRACE).

      The errors are the R13-R14 branches the R13 follow-up is fixing.

    Set B, strongest provenance, licence unclear: 68 sample drawings on Autodesk's own AutoCAD R13, C3, C4 and c4a install discs, as third-party uploads on archive.org. Container 0 failures and header variables 100% close.

    Corrections to the fingerprint above and in #323's ARCHITECTURE text:

    • Header padding does not tell AutoCAD R13 apart: Autodesk's own R13 files pad 0000 in 196 of 263 headers and 1111 in only 6. The 1111 rule is R14 evidence only.
    • What holds on every AutoCAD-written R13 file:
      • 195 header slots, without §9's four R14+ shorts;
      • a header section of exactly ceil(bits/8);
      • 3 locators (older discs) or 4 (c4 era, with a §26 second header ending 18 78 01 04);
      • a real preview image of 1.3 to 16.7 KB, where the Sovol writer's is 1 byte.
    • The byte after 18 in the second-header tail varies on Autodesk's own 3-locator files (30, 78, 08), so Cabin.dwg's 18 30 01 04 is not evidence against AutoCAD.
    • The 3-locator layout, untested until now, passes on every Autodesk 3-locator file.

    The Sovol files stay non-AutoCAD on the extra header byte, the 1-byte preview and the R2007+ SUN object, not on the padding.

  2. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Griffin's decision (2026-10-26): Autodesk's R13 install-disc drawings are local evidence only. They are measured and cited (results and sha256) in ARCHITECTURE.md and here, and never fetched in CI or committed. The US Forest Service R6 set is the CI pin, landing after #323. One correction to my comment above: the Sovol preview is not 1 byte. It is an 18,524-byte blank bitmap (180 × 97, 8-bit, every pixel 0xFF), where Cabin's is a real 188 × 140 image (measured by the R13 lane).

  3. added
    type:spec
    area:corpus
    priority:P1
    release:R13
    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:corpuspriority:P1release:R13type:spec

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions