mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-28 01:10:19 +01:00
acadrust 0.6.6 writes and reads a DWG linetype's element count as one byte, so a linetype of 256 elements came back from a DWG save with none (continuous) and one of 300 with 44. The DXF read cap of #3482 lets 256 through, so every capped DXF linetype hit the 256 -> 0 case. The DWG bridge text now writes at most 255 elements per linetype (the first ones, with group 40 totalling them); DXF output is unchanged. cadcraft_io::dwg_notes gives one note counting the linetypes cut, counted by the writer so an xref linetype the file leaves out is not counted. An engine hook installed by the apps echoes it and returns it in `warnings` on every DWG write: QSAVE/SAVEAS, document.bytes, EXPORT, WBLOCK, -WBLOCK, LAYOUT SAVEAS; cadcraft-cli convert prints it. Part of #1923 (F-05). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>