Repository navigation
feat(objects): route the class-numbered ACDBPLACEHOLDER of R14 and R2000 (#149) - #306
Merged
Merged
Conversation
…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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ares, so the copies merge in any order
# Conflicts: # ARCHITECTURE.md # tools/corpus/baseline.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-featuresandcargo run --release --example spec_examplesall 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).The one value the record holds, its
BLreactor count, equals the number of reactors in the DXF object's{ACAD_REACTORSbracket 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.rsand its shared harnessexamples/support/twin.rsare 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:
973628f3…f504b) is explicitly allowed (seeCLEANROOM.md).My contribution is based on:
Developer Certificate of Origin
By submitting this PR, I certify that the contribution complies with the Developer Certificate of Origin 1.1.