Skip to main content

AddHatch

Description

This method adds the HATCH entity.

The instance of the TdxfExportData type is a parameter of the AddHatch, AddHatchEx procedures. It contains following fields:

ParameterTypeDescription
DataTdxfExportDataThe instance of the TdxfExportData type is a parameter of the AddHatch and AddHatchEx procedures. The Points field contains a list of hatch boundaries. Each boundary is a set of points. The Count field defines quantity of boundaries. The Style field defines style of the hatch. The Flags field defines is the hatch line solid? Solid fill: Flags = 1; pattern fill: Flags = 0.
APatternNameStringThe hatch pattern name.
AIslandDetectionStyleTsgHatchIslandDetectionStyleThe hatch area.
APatternTypeTsgHatchPatternTypeThe hatch pattern type.

There are several hatch styles.

Hatch styleHatch pattern name
hsHorizontal, hsVerticalLINE
hsFDiagonal, hsBDiagonalANSI31
hsCrossNET
hsDiagCrossANSI37

There are several hatch areas types.

TsgHatchIslandDetectionStyleDescription
hidsNormalHatch "odd parity" area
hidsOuterHatch outermost area only
hidsIgnoreHatch through entire area

There are several hatch pattern types.

TsgHatchPatternTypeDescription
hptUserDefinedUser-defined
hptPredefinedPredefined
hptCustomCustom

Syntax

procedure AddHatch(var Data: TdxfExportData);

procedure AddHatchEx(var Data: TdxfExportData; APatternData: TList; APatternName: string; AIslandDetectionStyle: TsgHatchIslandDetectionStyle; APatternType: TsgHatchPatternType);