mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 10:47:31 -06:00
A HATCH with the pattern name _USER was saved with group 78 = 0 and no definition lines, though the DXF Reference has no user-defined exception to 78's number of pattern definition lines. Another program read no lines and its explode produced nothing, and a hatch whose lines are based away from its origin reopened with them at (0,0). The writer now lists a user-defined hatch's own families as it lists any pattern's: each line's angle, base point, offset and dashes, scaled and rotated as the hatch draws them, with the real count in group 78. The pattern type (76 = 0) and the double hatch area flag (77) are unchanged, and a DWG keeps the lines too, since the bridge converts the same written HATCH. A file that lists no lines for a user-defined hatch (78 = 0, as AutoCAD writes its own) is still read from its angle, spacing and double flag. The save test now expects the real count, and a doubled user-defined hatch based at (1,1) keeps both families' angle, base point, offset and count through a DXF save and read and a DWG save and read.