Differen DXF coding of HATCH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I receive DXF files from a customer.
I have written a small VBA program that runs through the DXF file and finds various entities that I want into my new drawing.
Among other things i find HATCH, here I will only use the boundary of the hatch and convert it to a FACE.
In my program - which works perfectly on the first files I have tested - I find code 10 and 20 as x and y coordinates, respectively, next 10/20 pairs are then next point, etc.
Is there an arc stroke in the boundary comes a code 42 followed by the BULG value BULG = 0 => line.
It works fine.
BUT now I suddenly receive files where the coding of HATCH is not as in the first files:
In the new code 42 does not exist, on the other hand, it seems that code 72 is followed by a host indicating whether the next is a LINE or an ARC ( 1 = LINE 2 = ARC ) and then follow codes 10, 20 and 11, 21 as x-y start and end coordinates on the boundary line, respectively.
One of the files contains very confusing both notations.
But I can't figure out when the different coding methods are used and why.
The files are all last saved in an AutoCAD Architectual 2019!
Can anyone explain for me.