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

Inserts a Hatch with the specified pattern, scale, and angle in the enclosed areas defined by the specified internal points.

.NET Syntax

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

Parameters

InternalPointsDblArray
Array of x-y coordinates of points in enclosed areas to be hatched
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.4


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:   InsertHatchByInternalPoints 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 SP04

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.