Visual Basic | |
---|---|
Sub SetHatchOrSolidData( _ ByVal PatternName As System.String, _ ByVal Angle As System.Double, _ ByVal Scale As System.Double, _ ByVal HatchPatternType As dsHatchPatternType_e, _ ByVal Spacing As System.Double _ ) |
C# | |
---|---|
void SetHatchOrSolidData( System.string PatternName, System.double Angle, System.double Scale, dsHatchPatternType_e HatchPatternType, System.double Spacing ) |
JavaScript | |
---|---|
SetHatchOrSolidData( PatternName : String, Angle : Number, Scale : Number, HatchPatternType : String, Spacing : Number ) |
COM native C++ | |
---|---|
HRESULT SetHatchOrSolidData( BSTR PatternName, DOUBLE Angle, DOUBLE Scale, dsHatchPatternType_e HatchPatternType, DOUBLE Spacing ) |
C++ | |
---|---|
DSRESULT SetHatchOrSolidData( const dsString& PatternName, double Angle, double Scale, dsHatchPatternType_e HatchPatternType, double Spacing ) |
Parameters
- PatternName
- Name of the Hatch pattern
- Angle
- Angle of the Hatch pattern lines; values are between 0 and 360° in 15° increments; a positive angle rotates the pattern counter-clockwise
- Scale
- Value by which to scale the Hatch pattern; values are between .25 and 2 in .25 unit increments; default is 1; for example, 2 doubles the distances in the pattern, and .25 reduces the original dimensions by 1/4; only valid if HatchPatternType not dsHatchPatternType_e.dsHatchPatternType_UserDefined; for user-defined Hatch patterns use Spacing to change hatch pattern line distances
- HatchPatternType
- Hatch pattern type as defined in dsHatchPatternType_e
- Spacing
- Distance between Hatch pattern lines in drawing units; default is 1; change the line spacing to customize the pattern proportions for specific graphics areas
Get or Set Hatch Pattern Data (C#)
Get or Set Hatch Pattern Data (VB.NET)
Get or Set Hatch Pattern Data (VBA)
Get or Set Hatch Pattern Data (VB.NET)
Get or Set Hatch Pattern Data (VBA)
This method is valid only when IHatchPattern:GetFillType is dsHatchFillType_e.dsHatchFillType_Hatch or dsHatchFillType_e.dsHatchFillType_Solid.
DraftSight V1R1.3