Understanding the TsgCADHatch-Entity

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: admin, support, SDS

Post Reply
KKesslau_SEMA
Posts: 5
Joined: 09 Mar 2018, 14:43

Understanding the TsgCADHatch-Entity

Post by KKesslau_SEMA » 19 Jul 2019, 12:57

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

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Understanding the TsgCADHatch-Entity

Post by support » 19 Jul 2019, 14:02

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

KKesslau_SEMA
Posts: 5
Joined: 09 Mar 2018, 14:43

Re: Understanding the TsgCADHatch-Entity

Post by KKesslau_SEMA » 23 Jul 2019, 09:49

Hi Maria,

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

Kevin

Post Reply