Hide Table of Contents
SetHatchOrSolidData Method (IHatchPattern)

Sets the specified Hatch pattern.

.NET Syntax

Visual Basic (Declaration) 
Sub SetHatchOrSolidData( _
   const 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 SetHatchOrSolidData( 
   System.string PatternName,
   System.double Angle,
   System.double Scale,
   dsHatchPatternType_e HatchPatternType,
   System.double Spacing
)
JavaScript 
SetHatchOrSolidData( 
   PatternName : String,
   Angle : Number,
   Scale : Number,
   HatchPatternType : String,
   Spacing : Number
)
COM native C++ 
HRESULT SetHatchOrSolidData( 
   BSTR PatternName,
   DOUBLE Angle,
   DOUBLE Scale,
   dsHatchPatternType_e HatchPatternType,
   DOUBLE Spacing
) 
C++ 
DSRESULT SetHatchOrSolidData( 
   const dsString& PatternName,
   double Angle,
   double Scale,
   dsHatchPatternType_e HatchPatternType,
   double Spacing
) 

Parameters

PatternName
Name of the Hatch pattern
Angle
Angle of the Hatch pattern lines; values are between 0 and 360° in 15° increments; a positive angle rotates the pattern counter-clockwise
Scale
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 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
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:   SetHatchOrSolidData 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) 2020 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.