dxf icon indicating copy to clipboard operation
dxf copied to clipboard

HATCH block cannot be parsed

Open gurolca opened this issue 2 years ago • 3 comments

HATCH entities cannot be seen in the parsed entities for a sample R14 DXF file in dxf library version 4.7.0

An example hatched object in the drawing image

Raw DXF file part image

The sample DXF file (zipped). 0607_B.dxf.zip

Is it possible to review and improve hatch.js file for this case?

gurolca avatar Oct 11 '22 11:10 gurolca

Same problem here with v5.0.0. I'm somewhat confused because README says that HATCH entities are being parsed, at least to some extent. Also, there's a hatch.js doing export const TYPE = 'HATCH' .

Is it possible to parse R14 HATCH entities or not?

hschmiedhofer avatar Jan 11 '23 15:01 hschmiedhofer

@gurolca did you find a way to parse your HATCHes in the meantime?

hschmiedhofer avatar Jan 12 '23 09:01 hschmiedhofer

@hschmiedhofer hatches should be supported from some time ago. I tryed to draw your sample file and it looks like is parsed correctly:

parsed with this library and drawn with ThreeJS: imagen

Drawn using DraftSight: imagen

Can you specify what is missing in the parser?

ieskudero avatar Jul 03 '23 14:07 ieskudero