libredwg icon indicating copy to clipboard operation
libredwg copied to clipboard

Hatch Pattern data different from AutoCAD one

Open timoria21 opened this issue 2 years ago • 3 comments

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.

image

timoria21 avatar Feb 27 '23 09:02 timoria21

That's the spec: https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf See HATCH

rurban avatar Feb 27 '23 14:02 rurban

Thanks a lot, I will check it out.

timoria21 avatar Feb 27 '23 16:02 timoria21

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).

image image

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

hatchPatterns.zip

timoria21 avatar Mar 17 '23 13:03 timoria21