libredwg
libredwg copied to clipboard
Hatch Pattern data different from AutoCAD one
Hello,
I find it difficult to compare hatch pattern JSON data with actual AutoCAD hatch pattern values, is there something I need to know to properly interpret these values? In particular, the origin and offset doesn't sum up...
I've also checked this article without succeding.
Thank you.

That's the spec: https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf See HATCH
Thanks a lot, I will check it out.
Hello,
I checked the documentation and I managed to get better results. However I have this strange behavior: when I read values and draw a representation, I get the same result I see if I open this file in AutoCAD; if I change a value in AutoCAD and then restore it, forcing a regeneration to happen, I get a different result (see the attached picture as a reference).

It seems that AutoCAD reads some cached values that are comparable with the ones we read; however there are also some "original" values, that I cannot manage to find; do you have any other suggestions on this matter?
Thanks,
Dave