InsertHatchByInternalPoints Method (ISketchManager) Send Feedback
See Also  Example
Hatch[out]
Hatch
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

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

Syntax

Visual Basic 
Function InsertHatchByInternalPoints( _
   ByVal InternalPointsDblArray As System.Object, _
   ByVal PatternName As System.String, _
   ByVal PatternScale As System.Double, _
   ByVal 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