Roadmap 0.11, Fixes
FX.132 CadCraft: DWG files AutoCAD 2022 called not valid (writer hardened)
Reported on the Discord: CadCraft DWGs did not open in AutoCAD 2022 ('Drawing file is not valid'; RECOVER failed); AutoCAD-saved files were fine. We have no AutoCAD here and the reporter did not say which DWG version, so the cause is not proven. The writer was compared with AutoCAD's own files and these defects fixed: the R2007 section map was one entry short (the likeliest cause for a 2007 save), the R2018 auxiliary header and the R2010/2013/2018 free-space section had the wrong layout, an out-of-range entity colour index was written as is, and the header's page-setups dictionary (ACAD_PLOTSETTINGS) was null. A structure validator (tools/dwg-test/structure.mjs) now checks page and object maps, handles, classes and numbers in all six versions. Tests: tools/dwg-test 133 passed; CadCraft suite 2370 passed. Still open: R2007+ files lack the material, visual-style and scale objects AutoCAD files carry, and the AppInfo/FileDepList sections. Waits on the reporter opening a 0.9 build in AutoCAD 2022 and saying which DWG version.
Verified 2026-11-20 (0.11 close-out): node tools/dwg-test/test.mjs -> 137 passed, 0 failed, 0 skipped, including the structure checks (page and object maps, handles, classes, numbers) for all six DWG versions that did not exist before. The writer fixes the row lists are in. The reporter (or anyone) opening a CadCraft DWG in AutoCAD 2022 remains: FX.132-HAND. Still open and not promised by the title: material, visual-style and scale objects, AppInfo/FileDepList sections.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.