mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 10:13:53 -06:00
AutoCAD keeps the current annotation scale in the named object dictionary's AcDbVariableDictionary, as a DICTIONARYVAR CANNOSCALE naming the scale. CADCraft read only its own record, so AutoCAD's drawings opened at 1:1 whatever their scale (annotative objects then showed at their first scale), and the variable was written back as read, so AutoCAD reopened a drawing at its old scale after CADCraft changed it. The variable is read when the scale is in the list (after CADCraft's record: AutoCAD keeps that record as it was, so the variable is the newer one), and the kept variable is written with the drawing's current scale. Annotative objects are written at that scale. Checked in CADCraft and AutoCAD: an AutoCAD drawing at 1:2 opens at 1:2; switched to 1:10 and saved as DXF and DWG, AutoCAD opens both at 1:10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>