Repository navigation
feat(dxf): write the VISUALSTYLE objects, paired with AutoCAD's export (#66) - #413
Merged
Merged
Conversation
…up the block records once (#126)
# Conflicts: # .github/workflows/ci.yml # src/lib.rs
…ECORD string in a code page not decoded, compare the 330 groups of objects (#126)
# Conflicts: # ARCHITECTURE.md
…bjects # Conflicts: # Cargo.toml
…output defines them, and take the kinds by the drawing's release (#126)
…index each table's order once (#126)
…s and the 330 relation (#126)
# Conflicts: # .github/workflows/ci.yml # ARCHITECTURE.md # src/dxf_convert.rs
# Conflicts: # ARCHITECTURE.md
… each string in its code page (#126)
# Conflicts: # examples/probe_dxf_objects.rs
…rate does not name (#126)
# Conflicts: # ARCHITECTURE.md
…record, and check group 102 escaping (#126)
…r the sections main added
…RECORD's group 102 strings (#126)
# Conflicts: # src/dxf_objects.rs
# Conflicts: # ARCHITECTURE.md
…layouts # Conflicts: # ARCHITECTURE.md
# Conflicts: # examples/probe_dxf_objects.rs # src/dxf_objects.rs
…wnership closure (#66)
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. |
Main's OBJECTS section text (7aw) and code stand word for word; the LAYOUT, GROUP and MLINESTYLE section is renumbered 7ax and the three files it changes sit on main's version of the OBJECTS writer and probe.
The base is now d00a65b (main's OBJECTS text and the LAYOUT section renumbered 7ax), and the VISUALSTYLE section follows as 7ay.
#373 landed, so main holds the LAYOUT, GROUP and MLINESTYLE section as 7az and the OBJECTS and LAYOUT code with its later fixes; the VISUALSTYLE section follows as 7ba and the three files it changes sit on main's version of them.
DrunkOnJava
enabled auto-merge (squash)
October 27, 2026 23:17
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…10-27 (#416) * docs: bring README, ROADMAP and CHANGELOG up to the landings of 2026-10-27 README's code-page and DXF writer text named work in review that has landed (#371, #380, #382, #384); jev_review.py prose ranked those sentences 0.72 to 0.96. ROADMAP's "where it stands" table was a 2026-10-21 snapshot whose numbers, CI row and release row were all out of date; it now points to the rendered numbers instead of repeating them. CHANGELOG gains #371, #380, #382, #384, #385 and #404. * docs(changelog): record the CI-only merge train (#408) * docs: OBJECTS landed (#372): README, ROADMAP and CHANGELOG * docs: LAYOUT, GROUP and MLINESTYLE (#373), the class map writer (#405) and the double-byte round trip (#414) landed * docs: VISUALSTYLE landed (#413) * docs(readme): name the skipped types still in review without per-type counts; MATERIAL landed (#325) * docs(readme): point to the open decoder PRs instead of a list that each landing makes stale
DrunkOnJava
added a commit
that referenced
this pull request
Oct 28, 2026
…ts (#66) (#420) Section 7ba said its counts were measured before the ownership closure joined the stack. CI run 40600119327 ran on the head that landed, with the closure in place, and its probe_dxf_objects VISUALSTYLE row is the table's: 1,008 written and paired, 62,208 groups, 61,944 agree, 264 relation, 0 disagree, 0 extra, 5,468 groups omitted. The sentence now cites that run.
2 tasks done
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
Closes #66.
dwg-to-dxfnow writes the 24 built-in VISUALSTYLE objects of a drawing from the fieldsacad_visual_styledecodes, under the groups AutoCAD's own DXF export gives them, andprobe_dxf_objectspairs every record with the export's. The OBJECTS writer put the style names in theACAD_VISUALSTYLEdictionary only as omitted entries before; they are now written.Stacked on #373 (
feat/dxf-layouts): it adds todxf_objects, whose OBJECTS writer, ownership closure and probe come from #372 and #373. Rebase onto main after they land.The export has three layouts by the release the drawing was saved by, and the writer follows the DWG's own (a VISUALSTYLE is written in the layout of its release whatever the output targets, as the LAYOUT is):
71to173), the internal-use flag291last, a true colour as its RGB under421to425.177and291, then each property followed by its176flag.70= 58), then every property as a typed group (90,40,290,62and420,1) with its176flag, the 28 named properties and the decoder's 30 extended ones.Spec reference
ODA v5.4.1 has no prescription for VISUALSTYLE (§20.4 stops at 104;
src/objects/acad_visual_style.rsderives the field list from bytes and says so). The group codes and their order are AutoCAD's own DXF exports of the corpus drawings, the same mapping the value oracle scores (#279); the property names are the positional ones the decoder gives (CLEANROOM.md 2026-08-30).src/dxf_objects.rs:visual_style_groupsand theVISUALSTYLEkind (kinds, the planner,record).examples/probe_dxf_objects.rs: the VISUALSTYLE relations the export forces (below);examples/probe_dxf_tables.rs: two reason strings reworded.ARCHITECTURE.md7aw: the three layouts, the evidence table, what is not written and why.Test plan
3a37721(before the ownership closure of feat(dxf): write the OBJECTS section, paired with AutoCAD's export (#126) #372 joined it):probe_dxf_objectsover the 42 drawings that have an AutoCAD export (R2000 to R2018), exit 0:1,008 is 24 styles in each of 42 drawings, all paired, in AutoCAD's group order. The 264 relations are named: the format version
177is 3 in the export of an R2013 or R2018 drawing where the DWG stores 2 (240 records), andRealistic's lighting quality (72) is 3 in the export where an R2000 to R2007 DWG stores 2 (24;acad_visual_styledocuments that style as clamped when saved down). The 5,468 omitted groups are counted with their reasons: extended data (1000, 1001, 1070) on 792 records; three constants of the R2000 to R2007 export,62(5),174(0) and45(0.0), in every style and no decoded field holds them (576 each); and 1,364 nearest-index groups of true colours (62 to 67), which the export derives from the RGB and the DWG stores as 0, with a derivation the corpus cannot settle (white 7,0x808080and0x7878788, black 18, blue 5), so they are not guessed. The tables, header, entities, BLOCKS, classes and colour probes also exited 0 on that tree.ACAD_VISUALSTYLE), the ARCHITECTURE table is updated from the log.python3 tools/maintainer/train/arch.py check,python3 tools/ci/spec_coverage.py --check,cargo fmt --all -- --check.422,423; the corpus has RGB only for the mono, edge and silhouette colours), R14 (no VISUALSTYLE is written for it), and a VISUALSTYLE written into a DXF of another release than its own.Existing tests and code changed
No existing test changed.
dxf_objects::kindsgainsVISUALSTYLE; the tables probe's two reasons for an omitted348handle no longer say "not written to OBJECTS yet".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:
The only inputs are the public corpus and AutoCAD's own DXF exports of its drawings (the group codes), and the oracle's mapping already in the tree. No algorithm-description comments in other projects were read.
Developer Certificate of Origin
I affirm the contribution is my own work and may be distributed under the project's Apache-2.0 license.