Repository navigation
feat(objects): decode the dynamic-block evaluation objects from AutoCAD's own DWG and DXF output (#152) - #328
Merged
Merged
Conversation
…49, #152) ODA spec v5.4.1 prints no MATERIAL layout. The field list is derived by the CLEANROOM.md method of 2026-10-26: the data bits of all 212 corpus records (R14 to R2018) against the AcDbMaterial AutoCAD exported to DXF for the same handle. Every record closes on its data-stream boundary on every release, from R2007 on a string stream the list consumes entirely, and 13,058 values equal the DXF twin by handle with 0 differences. Fields no DXF group shows are named unknown_* and listed in ARCHITECTURE.md section 7s. probe_material becomes the twin probe over the shared harness (examples/support/twin.rs, identical to the objects lane's copy). The strings-only read_strings and its tests are kept untouched. Baseline: decoded +212, skipped -212, errored 0.
…XF output (#152) WIPEOUTVARIABLES, ACDB_DYNAMICBLOCKPURGEPREVENTER_VERSION, ACDB_BLOCKREPRESENTATION_DATA, PDFDEFINITION and DBCOLOR have no spec layout. Each is derived by the CLEANROOM.md method of 2026-10-26 from the data bits of the 42 corpus records (R14 to R2018) against the DXF object of the same handle. All close on every release, from R2007 on a fully consumed string stream, and 50 values equal the DXF twin with 0 differences. DBCOLOR from R2004 reads the colour word (group 420 and xdata 1071), name and book; its leading BS is unverified. One probe per class over the shared twin harness. Baseline: decoded +42, skipped -42, errored 0.
…AD's own DWG and DXF output (#152) BLOCKGRIPLOCATIONCOMPONENT, BLOCKLINEARGRIP, BLOCKVISIBILITYGRIP, BLOCKLINEARPARAMETER, BLOCKVISIBILITYPARAMETER and BLOCKSCALEACTION have no spec layout. Derived by the CLEANROOM.md method of 2026-10-26 from the data bits of the 84 corpus records (R14 to R2018) against the DXF objects of the same handles: a shared AcDbEvalExpr / AcDbBlockElement / AcDbBlockGrip base chain and a tail per class. All close on every release, from R2007 on a fully consumed string stream, and 1,158 values equal the DXF twin with 0 differences. Handles are not decoded. Baseline: decoded +84, skipped -84, errored 0.
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. |
This was referenced Oct 26, 2026
Merged
Unprinted classes: decoded from one drawing each; provisional until controlled AutoCAD drawings
#348
Open
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bbd16cee0b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Merged
3 of 4 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
DrunkOnJava
enabled auto-merge (squash)
October 28, 2026 02:49
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
Stacked on #326 (which is stacked on #325): this branch contains #325's and #326's commits and lands after them; its own change is the single commit on top.
Decodes six dynamic-block evaluation objects ODA spec v5.4.1 never prints, on every release from R14 to R2018: BLOCKGRIPLOCATIONCOMPONENT, BLOCKLINEARGRIP, BLOCKVISIBILITYGRIP, BLOCKLINEARPARAMETER, BLOCKVISIBILITYPARAMETER and BLOCKSCALEACTION. The layouts are derived by the CLEANROOM.md method of 2026-10-26 from the data bits of AutoCAD-written drawings against AutoCAD's own DXF export of the same handles: a shared
AcDbEvalExpr/AcDbBlockElement/AcDbBlockGripbase chain and a tail per class.Spec reference
None: §20.4 has no entry for any of them, so there is no
docs/data/spec-coverage.tsvrow; the class row indocs/spec-coverage.md("Classes the spec does not prescribe") is added ascloses. Layout and evidence: ARCHITECTURE.md §7u (provisional letter). Per-class record: CLEANROOM.md (2026-10-26).Evidence (
cargo run --release --example probe_dynamic_blocks -- ../dwg-corpus, exit 0):R14 to R2018 on every class; R14 has no DXF twin, so its 12 records are boundary-only. Corpus baseline, relative to #326's head: decoded +84, skipped -84, errored 0 (
measure.py checkpasses on this head). From R2007 the decoder also requires the string stream to be exhausted. One measured pairing is checked by the probe rather than assumed: the unset expression valuef64::MAX / 10is written1.797693134862314E+99in the DXF. Unverified by value (ARCHITECTURE.md §7u): theBL -1that opens every record, the scale action's trailing byte, the order of the visibility parameter's two zeroBS(groups 170 and 171), the meaning of the value type -9999, and the implied length four of the linear parameter's property list. Handles (330 to 333) are in the handle stream and are not decoded.Test plan
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features,cargo test --release --all-featurespass locally on this headprobe_dynamic_blocksover the 52 pinned drawings (84 records, 1,158 values against the DXF twins, 0 differ)python3 tools/ci/spec_coverage.py --checkpassessrc/objects/small_classes.rsexposes three helpers (open_and_finish,read_small,unsupported) aspub(crate)for reuse.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:
My contribution is based on AutoCAD's own output, by the method recorded in CLEANROOM.md (2026-10-26): AutoCAD-written DWG files compared with AutoCAD-written DXF exports of the same drawing, from the pinned public corpus (ACadSharp
samples/sample_base; data files only). No third-party DWG or DXF implementation was consulted, ACadSharp's and ezdxf's reading code, comments, tests and derived data included. No vocabulary beyond the DXF group codes and subclass markers in the twins was used.Developer Certificate of Origin
I affirm that the contribution is my own work and can be distributed under the project's Apache-2.0 license.