Hide Table of Contents
GetHatchOrSolidData Method (IHatchPattern)

Gets the specified Hatch pattern data.

.NET Syntax

Visual Basic (Declaration) 
Sub GetHatchOrSolidData( _
   dsString* PatternName As System.String, _
   double* Angle As System.Double, _
   double* Scale As System.Double, _
   dsHatchPatternType_e* HatchPatternType As dsHatchPatternType_e, _
   double* Spacing As System.Double _
) 
C# 
void GetHatchOrSolidData( 
   out System.string PatternName,
   out System.double Angle,
   out System.double Scale,
   out dsHatchPatternType_e HatchPatternType,
   out System.double Spacing
)
JavaScript 
GetHatchOrSolidData(
) : {
   PatternName : String,
   Angle : Number,
   Scale : Number,
   HatchPatternType : String,
   Spacing : Number
}
COM native C++ 
HRESULT GetHatchOrSolidData( 
   BSTR* PatternName,
   DOUBLE* Angle,
   DOUBLE* Scale,
   dsHatchPatternType_e* HatchPatternType,
   DOUBLE* Spacing
) 
C++ 
DSRESULT GetHatchOrSolidData( 
   dsString* PatternName,
   double* Angle,
   double* Scale,
   dsHatchPatternType_e* HatchPatternType,
   double* Spacing
) 

Parameters

PatternName[out]
Name of the Hatch pattern
Angle[out]
Angle of the Hatch pattern lines; values are between 0 and 360° in 15° increments; a positive angle rotates the pattern counter-clockwise
Scale[out]
Value by which to scale the Hatch pattern; values are between .25 and 2 in .25 unit increments; default is 1; for example, 2 doubles the distances in the pattern, and .25 reduces the original dimensions by 1/4; only valid if HatchPatternType[out] not dsHatchPatternType_e.dsHatchPatternType_UserDefined; for user-defined Hatch patterns use Spacing to change Hatch pattern line distances
HatchPatternType
Hatch pattern type as defined in dsHatchPatternType_e
Spacing[out] or Return Value
Distance between Hatch pattern lines in drawing units; default is 1; change the line spacing to customize the pattern proportions for specific graphics areas

Example

Remarks

This method is valid only when IHatchPattern:GetFillType is dsHatchFillType_e.dsHatchFillType_Hatch or dsHatchFillType_e.dsHatchFillType_Solid.
 

See Also

Availability

DraftSight V1R1.3


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetHatchOrSolidData Method (IHatchPattern)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.