Solid Edge Framework Type Library
SetHatch Method
Specifies the display index (sequence number in which the linear element was created) for the linear element being modified.
Specifies the angle at which the linear element is placed. The angle is specified as follows: horizontal to the right is zero and the angle is measured counterclockwise for positive angles. Negative angle values are allowed, but are transformed to the equivalent positive value. The angular units are the active angular readout unit.
Specifies the new x coordinate for the start of the linear element. This value cannot be modified for the primary (first place) linear element.
Specifies the new y coordinate for the start of the linear element. This value cannot be modified for the primary (first place) linear element.
Specifies the new horizontal distance at which to repeat the linear element in the hatch pattern.
Specifies the new vertical distance at which to repeat the linear element in the hatch pattern.
Specifies the new color of the linear element.
Specifies the new width of the linear element.
Specifies the new line style name (continuous, dash gap style, and so forth).
Description
Modifies one or more characteristics of an existing linear element used in a hatch pattern.
Syntax
Visual Basic
Public Sub SetHatch( _
   ByVal nDisplayIndex As Long, _
   ByVal dRotation As Double, _
   ByVal dXOrigin As Double, _
   ByVal dYOrigin As Double, _
   ByVal dSpacing As Double, _
   ByVal dShift As Double, _
   ByVal nColor As Long, _
   ByVal dWidth As Double, _
   ByVal DashTypeName As String _
) 
Parameters
nDisplayIndex
Specifies the display index (sequence number in which the linear element was created) for the linear element being modified.
dRotation
Specifies the angle at which the linear element is placed. The angle is specified as follows: horizontal to the right is zero and the angle is measured counterclockwise for positive angles. Negative angle values are allowed, but are transformed to the equivalent positive value. The angular units are the active angular readout unit.
dXOrigin
Specifies the new x coordinate for the start of the linear element. This value cannot be modified for the primary (first place) linear element.
dYOrigin
Specifies the new y coordinate for the start of the linear element. This value cannot be modified for the primary (first place) linear element.
dSpacing
Specifies the new horizontal distance at which to repeat the linear element in the hatch pattern.
dShift
Specifies the new vertical distance at which to repeat the linear element in the hatch pattern.
nColor
Specifies the new color of the linear element.
dWidth
Specifies the new width of the linear element.
DashTypeName
Specifies the new line style name (continuous, dash gap style, and so forth).
Remarks
Each element has a display index assigned sequentially according to the order in which it was created. To modify a linear element, specify the display index for that element and modify the characteristics as needed. Characteristics not specified in this method retain their original values.
See Also

HatchPatternStyle Object  | HatchPatternStyle Members

Send comments on this topic.