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

Retrieves hatch pattern and its name from 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.