Understanding the TsgCADHatch-Entity
Moderators: SDS, support, admin
-
- Posts: 8
- Joined: 09 Mar 2018, 14:43
Understanding the TsgCADHatch-Entity
Hi there,
I'm searching for a simple way to read/iterate and finally display TsgCADHatch-entities like these marked with the red quad:
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.
I'm searching for a simple way to read/iterate and finally display TsgCADHatch-entities like these marked with the red quad:
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
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
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
Chat support on Skype: cadsofttools.support
-
- Posts: 8
- Joined: 09 Mar 2018, 14:43
Re: Understanding the TsgCADHatch-Entity
Hi Maria,
thank you for your help. This was exactly what I needed
Kevin
thank you for your help. This was exactly what I needed

Kevin