mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
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>