TsgDXFExport.AddHatch, TsgDXFExport.AddHatchEx

TsgDXFExport                        

  Classes Reference > Writing to file > TsgDXFExport > TsgDXFExport Methods >

TsgDXFExport.AddHatch, TsgDXFExport.AddHatchEx

TsgDXFExport                        

Previous pageReturn to chapter overviewNext page

Adds the HATCH entity.

procedure AddHatch(var Data: TdxfExportData);

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

Description

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

§        Points – list of hatch boundaries. Each boundary is a set of points.

§Count – defines quantity of boundaries.
§Style – defines style of the hatch. Where are several hatch styles which corresponds with AutoCAD main hatch pattern names:

Hatch style                                Hatch pattern name

hsHorizontal, hsVertical                        LINE

hsFDiagonal, hsBDiagonal                ANSI31

hsCross                                NET

hsDiagCross                                ANSI37

§        Flags – defines: is hatch line solid? Solid fill: Flags = 1; pattern fill: Flags = 0.

TsgHatchIslandDetectionStyle

hidsNormal                        Hatch "odd parity" area

hidsOuter                        Hatch outermost area only

hidsIgnore                        Hatch through entire area

TsgHatchPatternType

hptUserDefined                User-defined

hptPredefined                        Predefined

hptCustom                        Custom

 

 

Go to CAD VCL Enterprise