Skip to content

feat(objects): route the class-numbered ACDBPLACEHOLDER of R14 and R2000 (#149) - #306

Merged
DrunkOnJava merged 4 commits into
mainfrom
obj/placeholder-class
Oct 26, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
obj/placeholder-class

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Route the class-numbered ACDBPLACEHOLDER of R14 and R2000 to the placeholder decoder that R2004 and later already use through its fixed code 0x50. The spec lists ACDBPLACEHOLDER with the fixed types and prints no field list: the record is the common object data and nothing else. R14 and R2000 write it under a class number from AcDb:Classes, as they do XRECORD, and the class-name dispatch did not route it, so those 16 records were skipped.

Spec reference

§5 object type table (0x50 ACDBPLACEHOLDER); no §20.4 section exists for it (tracking #149). The body being empty is the finding already recorded in src/objects/placeholder.rs.

Test plan

  • cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test --release --all-features (774 lib tests and every integration binary pass), RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features, cargo +1.85 check --all-features and cargo run --release --example spec_examples all pass locally.

  • Shown on real files, no new unit tests: cargo run --release --example probe_placeholder -- <corpus> over the 52 pinned drawings, by either route (class-numbered and fixed code).

    Release Records Close Reactor counts compared with the DXF Differ
    R14 8 8 (new) no twin
    R2000 8 8 (new) 8 0
    R2004 to R2013 24 24 24 0
    R2018 4 4 2 0

    The one value the record holds, its BL reactor count, equals the number of reactors in the DXF object's {ACAD_REACTORS bracket on all 42 records that have a twin.

  • Corpus baseline regenerated: decoded +16, skipped -16, errored unchanged (R14 and R2000 files, one record each).

  • Tests touched: none. examples/probe_placeholder.rs and its shared harness examples/support/twin.rs are new examples, not tests.

Source-provenance declaration

By submitting this PR I certify that my contribution does not incorporate executable code from any source whose license is incompatible with Apache-2.0. Specifically:

  • No Autodesk DWG SDK source (RealDWG, ObjectARX, ObjectDBX) or NDA-protected Autodesk documentation was consulted or imported.
  • No Open Design Alliance Teigha / Drawings SDK source was consulted or imported. The ODA's public Open Design Specification for .dwg files PDF (v5.4.1, sha256 973628f3…f504b) is explicitly allowed (see CLEANROOM.md).
  • No GPL-licensed DWG implementation source (LibreDWG, etc.) was consulted or imported.

My contribution is based on:

  • The ODA's freely-redistributable Open Design Specification for .dwg files (v5.4.1);
  • The corpus bytes and AutoCAD's own DXF exports of the pinned drawings (the oracle);
  • No reading of comments or code in any other project.

Developer Certificate of Origin

By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.

…000 (#149)

The specification lists ACDBPLACEHOLDER with the fixed types (0x50) and gives
it no field list: it is the common object data and nothing else. R14 and
R2000 files write it under a class number from AcDb:Classes, which the
class-name dispatch did not route, so the 16 placeholders of those releases
were skipped. They are the same record and close on their data-stream
boundary.

All 52 placeholders of the corpus close; against AutoCAD's DXF export the
reactor count of all 42 that have a twin equals the object's reactor list.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T20:51:27.596485Z cea950f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant