You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VIEW reads its view mode as a BS before R2007 where §20.4.60 gives four bits #256
area:oracleComparing decoded values with AutoCAD's own DXF exportarea:tablesSymbol tables and their controls (§20.4.51 to §20.4.70)priority:P2Quality and completenesstype:bugSomething reads, writes or reports wrongly
Spec: §20.4.60 VIEW: View mode X 71, 4 bits: 0123 (0: 71 bit 1, 1: 71 bit 2, 2: 71 bit 4, 3: OPPOSITE of 71 bit 16), the same encoding as VPORT's (§20.4.64).
tables::view::decode (the pre-R2007 path) reads it as a BS (view.rs, let view_mode = c.read_bs()?), while the R2007+ split-stream path reads the four bits. A BS is 2 to 18 bits, not 4, so everything after it on R2000/R2004 is read from the wrong place: the ACadSharp sample_AC1015 and sample_AC1018 VIEW records error with "Reserved bit pattern "11" encountered in BD" (found while pairing them with AutoCAD's DXF export, #99). On R2007+ the value is surfaced as the raw four bits rather than the group-71 value; #238 converts VPORT's the way §20.4.64 prescribes and VIEW should match.
Acceptance
Both paths read the four bits and surface the DXF 71 value; the R2000/R2004 VIEW records decode
A VIEW scorer in examples/dxf_oracle shows every VIEW field equal to the export on every release
Layout part: the PR above reads the pre-R2007 record per §20.4.60; the R14/R2000/R2004 VIEWs now close and every surfaced field equals the export. Still open here: (1) surfacing view_mode as group 71 for VIEW (after #238 lands, share its conversion); (2) the entry-header bits on R2013/R2018: VIEW's single record on each carries the clear bit first, as R2007/R2010 records do, while every other table type on R2013/R2018 carries it second (#235), so after #235 VIEW's is_xref_dependent reads true on those two records against the export's clear bit 16. Two records cannot say whether that is a per-type order or a misread prefix bit on R2013+ VIEW.
§20.4.60.1's own example (p169, OBJECT: view (3DH), len 40H (64), handle: 3F, an R13/R14 record whose printed CRC verifies) closes exactly on its RL boundary with the view mode read as four bits, and the crate fails on it with the same Reserved bit pattern "11" encountered in BD. Row 20.4.60 of tests/fixtures/spec-examples/r14-objects.tsv (#107) reproduces this from spec bytes with no corpus file; a fix should flip its expect cell to closes.
area:oracleComparing decoded values with AutoCAD's own DXF exportarea:tablesSymbol tables and their controls (§20.4.51 to §20.4.70)priority:P2Quality and completenesstype:bugSomething reads, writes or reports wrongly
Activity
DrunkOnJava commentedon Oct 26, 2026
Layout part: the PR above reads the pre-R2007 record per §20.4.60; the R14/R2000/R2004 VIEWs now close and every surfaced field equals the export. Still open here: (1) surfacing view_mode as group 71 for VIEW (after #238 lands, share its conversion); (2) the entry-header bits on R2013/R2018: VIEW's single record on each carries the clear bit first, as R2007/R2010 records do, while every other table type on R2013/R2018 carries it second (#235), so after #235 VIEW's is_xref_dependent reads true on those two records against the export's clear bit 16. Two records cannot say whether that is a per-type order or a misread prefix bit on R2013+ VIEW.
fix(tables): read the pre-R2007 VIEW record as §20.4.60 gives it
test(corpus): record the three VIEW records #256's fix decodes
fix(tables): read the pre-R2007 VIEW record as §20.4.60 gives it
test(corpus): record the three VIEW records #256's fix decodes
DrunkOnJava commentedon Oct 26, 2026
§20.4.60.1's own example (p169,
OBJECT: view (3DH), len 40H (64), handle: 3F, an R13/R14 record whose printed CRC verifies) closes exactly on itsRLboundary with the view mode read as four bits, and the crate fails on it with the sameReserved bit pattern "11" encountered in BD. Row20.4.60oftests/fixtures/spec-examples/r14-objects.tsv(#107) reproduces this from spec bytes with no corpus file; a fix should flip itsexpectcell tocloses.fix(tables): read the pre-R2007 VIEW record as §20.4.60 gives it
test(corpus): record the three VIEW records #256's fix decodes
feat(dxf): score VISUALSTYLE, MLEADERSTYLE and VIEW in the value oracle
7 remaining items
feat(dxf): score VISUALSTYLE, MLEADERSTYLE and VIEW in the value oracle
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
test(fixtures): run the specification's own worked examples through t…
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
feat(dxf): score VISUALSTYLE, MLEADERSTYLE and VIEW in the value oracle
feat(dxf): score VISUALSTYLE, MLEADERSTYLE and VIEW in the value orac…
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60)
fix(tables): VIEW's view mode as DXF group 71 (§20.4.60) (#284)