Using the Process Analyst > Process Analyst for Developers > Automation Model > IAlarmPen.SetHatchStyle [Method]

IAlarmPen.SetHatchStyle [Method]

Sets the hatch style used for drawing the specified state.

Defined As



[in] The state for which you would like to assign a hatch style.


[in] The hatch style that will be used for the specified state.

Execution Result

If the function succeeds the return value will be Success. If the state is out of range then the return value will be InvalidArgument. If the pen is deleted the return value will be GeneralFailure.


The color value can be calculated using the following formula: color = (65536 * Blue) + (256 * Green) + (Red). Where red, green and blue are 0-255.

See Also

IAlarmPen.GetHatchStyle [Method]

Calling Syntax

This example assumes there is a valid AlarmPen object to be passed into the example methods.


Sub Example(alarmPen As Object)
`Setting HatchStyle
alarmPen.SetHatchStyle(0, 1)
End Sub


FUNCTION Example(OBJECT hAlarmPen)
// Setting HatchStyle
_ObjectCallMethod(hAlarmPen, "SetHatchStyle" ,0, 1);