Files
cadcraft/apps/cadcraft-cli
2ez4gcxandClaude Opus 5.5 b861b6c0a5 DWG save: keep the first 255 dash elements of a linetype, and say so
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>
2026-11-26 12:07:14 +07:00
..