Repository navigation
Conversation
…ld#2885) ZWCAD 2025 AUDIT flags an AC1032 DWG without the drawing variables dictionary ("AcDbVariableDictionary Dictionary Invalid class type of (0)"). Drop the AC1032 early return in add_variable_dictionary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
austin62jake
left a comment
There was a problem hiding this comment.
Tested merged onto current main (865fa9a), together with #2882, #2884 and #2887, on Windows 10 Pro x64 (stable Rust). cargo xtask ci: all 7 steps pass (fmt, clippy, 3666 tests, i18n, assets, layers, wasm), including an_ac1032_dwg_gets_the_variable_dictionary_too. It merges cleanly with #2884, which edits the same file.
The change is the smallest one that does it: the early return goes, and add_variable_dictionary already keeps a dictionary the drawing has. The test now checks that the dictionary is there and that CADCraft reads its own 2018 DWG back with the rectangle. I couldn't run ZWCAD's AUDIT, so that part is your result.
|
A note so this doesn't surprise you after your next merge of main: main now pins craft-libs at cadcraft_io::dwg_worker::allow_in_process();On Windows and macOS with plain |
|
Thank you for this, @assamaral. The DWG bridge has since moved out of CADCraft: #3143 put |
|
Thank you, @assamaral! The DWG bridge moved to storytold/craft-libs as |
Fixes #2885 (related: #1813, #1872).
add_variable_dictionaryskipped AC1032 output, so a drawing with noAcDbVariableDictionary(every ezdxf DXF) became a 2018 DWG that ZWCAD 2025's AUDIT reports as an error. This drops the AC1032 early return; a dictionary the drawing already has is still kept as is.Tests
an_ac1032_dwg_stays_as_it_wasreplaced byan_ac1032_dwg_gets_the_variable_dictionary_too: red before the fix, green after.cargo test -p cadcraft-dwg -p cadcraft-io,cargo clippy ... --all-targets -D warnings,cargo fmt --check: clean.ZWCAD 2025 AUDIT (batch
/b), ezdxf 1.4.5 R2018 line drawing →cadcraft-cli convert→ AC1032AcDbVariableDictionary Dictionary Invalid class type of (0) Invalid Removed, 1 errorNot tested: Vectric Aspire with the AC1032 DWG now carrying the dictionary (AutoCAD's own 2018 DWGs carry it, so no change is expected).
🤖 Generated with Claude Code
Summary by CodeRabbit