Files
cadcraft/crates
2ez4gcxandClaude Opus 5.5 4cbdfc1600 DXF: do not write the derived boundary path bit without a pixel size (#3664)
Since #3389 the HATCH writer keeps the Derived bit (4) of each boundary
path's group 92 from the file it read, but it never writes the hatch's
pixel size (group 47), and the reader does not keep one. #3664 reports
that AutoCAD refuses such a file, and that a stand-in pixel size draws
NET patterns solid.

Write only Polyline (2), External (1) from `outer`, and Textbox (8) and
Outermost (16) from the file, as for paths CADCraft creates. The bit
stays in HatchLoop::boundary_flags. Associativity (71), the source
handles (97, 330) and the pattern are unchanged; no group 47 is written.
The DWG save and AutoLISP entget use the same writer.

New test reads an invented associative NET hatch with derived paths and
a pixel size, saves it twice and checks the 92 bits, no 47, 71, 97 and
the 330 handles. Four #3389 tests now expect bit 4 cleared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:27:23 +07:00
..