Visual Basic | |
---|---|
Function InsertHatchByBoundary( _ ByVal BoundaryPointCountLongArray As System.Object, _ ByVal BoundaryPointDblArray As System.Object, _ ByVal PatternName As System.String, _ ByVal PatternScale As System.Double, _ ByVal 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
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.
ISketchManager Members
ISketchManager::InsertHatchByEntities Method
ISketchManager::InsertHatchByInternalPoints Method