code to parse R12 DXF files