Hide Table of Contents
InsertHatchByBoundary Method (ISketchManager)
Hatch[out]
Hatch

Inserts a Hatch with the specified pattern, scale, angle, and boundary loop.

.NET Syntax

Visual Basic (Declaration) 
Function InsertHatchByBoundary( _
   const dsLongArray& BoundaryPointCountLongArray As System.Object, _
   const dsDoubleArray& BoundaryPointDblArray As System.Object, _
   const dsString& PatternName As System.String, _
   double PatternScale As System.Double, _
   double PatternAngle As System.Double _
) As Hatch
C# 
Hatch InsertHatchByBoundary( 
   System.object BoundaryPointCountLongArray,
   System.object BoundaryPointDblArray,
   System.string PatternName,
   System.double PatternScale,
   System.double PatternAngle
)
JavaScript 
InsertHatchByBoundary( 
   BoundaryPointCountLongArray : Array,
   BoundaryPointDblArray : Array,
   PatternName : String,
   PatternScale : Number,
   PatternAngle : Number
) : dsHatch
COM native C++ 
HRESULT InsertHatchByBoundary( 
   VARIANT BoundaryPointCountLongArray,
   VARIANT BoundaryPointDblArray,
   BSTR PatternName,
   DOUBLE PatternScale,
   DOUBLE PatternAngle,
   IHatch** Hatch
) 
C++ 
DSRESULT InsertHatchByBoundary( 
   const dsLongArray& BoundaryPointCountLongArray,
   const dsDoubleArray& BoundaryPointDblArray,
   const dsString& PatternName,
   double PatternScale,
   double PatternAngle,
   dsHatch** Hatch
) 

Parameters

BoundaryPointCountLongArray

Array containing a long that is the number of points in the Hatch boundary loop

BoundaryPointDblArray

Array of x-y coordinates of the points in the Hatch boundary loop

PatternName

Name of the Hatch pattern

PatternScale

Value by which to scale the Hatch pattern; values are between .25 and 2 in .25 unit increments; default is 1 (see Remarks)

PatternAngle

Angle of the Hatch pattern lines; values are between 0 and 2*pi radians in .26 radian increments; a positive angle rotates the pattern counter-clockwise

Hatch[out] or Return Value
Hatch

Example

Remarks

If PatternScale is equal to:

  • 2.00, then the distance between pattern lines doubles. 
  • 0.25, then the distance between pattern lines is 1/4 the original distance.

PatternScale is valid only when the HatchPatternType parameter of IHatchPattern::GetHatchOrSolidData is not dsHatchPatternType_e.dsHatchPatternType_UserDefined.

To scale user-defined Hatch patterns, call IHatchPattern::SetHatchOrSolidData to change the line spacing of the Hatch pattern.

 

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:   InsertHatchByBoundary Method (ISketchManager)
*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.