Roadmap 0.12, Fixes
FX.485 CadCraft + BimCraft: DWG and DXF that AutoCAD 2024 refused (writer brought in line with AutoCAD's own files)
Reported by email (#2166): DWG and DXF made in CadCraft, and exported from BimCraft, do not open in AutoCAD 2024 ('Drawing file is not valid'; 'Invalid or incomplete DXF'); the same files open in CadCraft. Earlier: FX.132 (DWG, AutoCAD 2022), FX.130 (R12 DXF).
Found by comparing our files with AutoCAD's samples, the ODA File Converter's re-saves and ezdxf (MIT): DXF 2000 (cadcraft dxf2000.js, bimcraft plan-dxf.js) had no 100 AcDbDimStyleTable on the DIMSTYLE table, R2007-only groups 69/70 in the AC1015 DIMSTYLE record, a null plot style (390 0) on every layer, no ACAD_PLOTSTYLENAME and no CLASSES for LAYOUT/placeholder. DWG (lib/dwg write.js, all apps by writer-sync): from R2004 LAYOUT and ACDBPLACEHOLDER objects used class numbers 50x where AutoCAD uses fixed types 82/80; XRECORD was a class, AutoCAD writes type 79; the R2007+ header unknowns were 0/0/0, AutoCAD writes 10/1.0/1. All fixed.
Checks (no AutoCAD here): new tools/dwg-test/dxf-structure.mjs (DXF 2000 rules; ODA's and ezdxf's own R2000 DXF pass, the released files fail), structure.mjs fixed-type rules (AutoCAD samples pass), tools/dwg-test/autocad-strict.mjs 35/0, tools/dwg-test/test.mjs 203/0, bin/test-cadcraft.mjs 2998/0, bin/test-plan-cad.mjs 82/0; lab browser check tools/dwg-test/browser-autocad-strict.mjs 20/0 (Save as every DWG version, DXF R12, DXF 2000 in /lab/cadcraft; BimCraft's seven export formats), all 15 files through the ODA File Converter with audit, no errors.
Not proven: that AutoCAD 2024 opens them (not seen). Still different from AutoCAD's DWG: no material / visual style / scale objects in 2007+, no AppInfo section (FX.132 list). Waits on someone opening a lab file in AutoCAD.
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.