API Reference > OdDb Classes > OdDbSectionSettings Class > OdDbSectionSettings Methods > OdDbSectionSettings::setHatchPattern Method
OdDbSectionSettings::setHatchPattern Method
Syntax
C++
void setHatchPattern(OdDbSectionSettings::SectionType nSecType, OdDbSectionSettings::Geometry nGeometry, OdDbHatch::HatchPatternType nPatternType, const OdString& pszPatternName);
Parameters 
Description 
OdDbSectionSettings::SectionType nSecType 
[in] Section type.  
OdDbSectionSettings::Geometry nGeometry 
[in] Geometry, which hatch pattern will be set.  
OdDbHatch::HatchPatternType nPatternType 
[in] Hatch pattern type.  
const OdString& pszPatternName 
[in] Hatch pattern name. 

Sets hatch pattern and its name to the specified geometry. 

 

Possible section types are:

kLiveSection - 0x1, 
k2dSection - 0x2, 
k3dSection - 0x4 

Possible geometries are:

kIntersectionBoundary - 0x1, 
kIntersectionFill - 0x2, 
kBackgroundGeometry - 0x4, 
kForegroundGeometry - 0x8, 
kCurveTangencyLines - 0x10 

Possible hatch pattern types are:

kUserDefined 
  • 0,
 
User-defined hatch. 
kPreDefined 
  • 1,
 
Defined in acad.pat and acadiso.pat. 
kCustomDefined 
  • 2,
 
In its own PAT file. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.