Add_LinearHatch example
Example for Add_LinearHatch method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Call cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
Call cAvax1.EndAvax()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim xV() As Single
Dim yV() As Single
Dim zV() As Single
Dim Distance As Single
Dim Angle As Single
Dim fOutside As Boolean
Dim fBorder As Boolean
Dim Mask As String
Dim vItemProperties As Object
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim Answer As Integer
ReDim xV(5)
ReDim yV(5)
ReDim zV(5)
xV(1) = 2
yV(1) = 2
xV(2) = 2
yV(2) = 12
xV(3) = 12
yV(3) = 12
xV(4) = 12
yV(4) = 2
xV(5) = 10
yV(5) = -1
Distance = 0.3
Angle = 45
fOutside = False
fBorder = False
Mask = "100"
Answer = cAvax1.Add_LinearHatch(xV, yV, zV, Distance, Angle, fOutside, fBorder, Mask, vItemProperties, iClr, iWidth, iStyle, iLayer)
End Sub