Page 1 of 1

Understanding the TsgCADHatch-Entity

Posted: 19 Jul 2019, 12:57
by KKesslau_SEMA
Hi there,

I'm searching for a simple way to read/iterate and finally display TsgCADHatch-entities like these marked with the red quad:
dxf_hatches.png
dxf_hatches.png (118.45 KiB) Viewed 11131 times

I looked at the source-code of the SimpleImport- and Viewer-Demos but they just can display them. I did not found how they are drawn.
What I found out is that an Entity with a hatch is marked as a TsgCADCurvePolygon respectivly TsgCADHatch. I also found in the help about the properties "ParsedLines" and "HatchPatternData". From my understanding regarding line hatches the "ParsedLines"-Properties seems the way to go. Can you point me in the right direction as how hatches work?

Thanks in advance,
Kevin

PS: If you need the original dxf-file I can send it to you by e-mail.

Re: Understanding the TsgCADHatch-Entity

Posted: 19 Jul 2019, 14:02
by support
Hi Kevin,

Please have a look at:
procedure TsgCADImage.DrawHatch(Sender: TObject);
Seems this is what you are looking for.

If you need some assistance on a specific file, please send it by e-mail.

Maria

Re: Understanding the TsgCADHatch-Entity

Posted: 23 Jul 2019, 09:49
by KKesslau_SEMA
Hi Maria,

thank you for your help. This was exactly what I needed :)

Kevin