Visual Basic | |
---|---|
Function InsertHatchByEntities( _ ByVal EntitiesArray As System.Object, _ ByVal PatternName As System.String, _ ByVal PatternScale As System.Double, _ ByVal PatternAngle As System.Double _ ) As Hatch |
C# | |
---|---|
Hatch InsertHatchByEntities( System.object EntitiesArray, System.string PatternName, System.double PatternScale, System.double PatternAngle ) |
JavaScript | |
---|---|
InsertHatchByEntities( EntitiesArray : Array, PatternName : String, PatternScale : Number, PatternAngle : Number ) : dsHatch |
COM native C++ | |
---|---|
HRESULT InsertHatchByEntities( VARIANT EntitiesArray, BSTR PatternName, DOUBLE PatternScale, DOUBLE PatternAngle, IHatch** Hatch ) |
C++ | |
---|---|
DSRESULT InsertHatchByEntities( const dsObjectPtrArray& EntitiesArray, const dsString& PatternName, double PatternScale, double PatternAngle, dsHatch** Hatch ) |
Parameters
- EntitiesArray
- Array of entities that form the Hatch boundary
- 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
Insert Hatch by Entities or Internal Points (C#)
Insert Hatch by Entities or Internal Points (VB.NET)
Insert Hatch by Entities or Internal Points (VBA)
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::InsertHatchByBoundary Method
ISketchManager::InsertHatchByInternalPoints Method