Add_BlockLines example
Example for Add_BlockLines method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Static xStart, yStart As Single
Dim x1() As Single
Dim y1() As Single
Dim z1() As Single
Dim x2() As Single
Dim y2() As Single
Dim z2() As Single
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 x1(4)
ReDim y1(4)
ReDim z1(4)
ReDim x2(4)
ReDim y2(4)
ReDim z2(4)
x1(1) = xStart : y1(1) = yStart : x2(1) = xStart : y2(1) = yStart + 10
x1(2) = xStart : y1(2) = yStart + 10 : x2(2) = xStart + 10 : y2(2) = yStart + 10
x1(3) = xStart + 10 : y1(3) = yStart + 10 : x2(3) = xStart + 10 : y2(3) = yStart
x1(4) = xStart + 10 : y1(4) = yStart : x2(4) = xStart : y2(4) = yStart
iClr = 1
Answer = cAvax1.Add_BlockLines(x1, y1, z1, x2, y2, z2, vItemProperties, iClr, iWidth, iStyle, iLayer)
xStart = xStart + 0.5
yStart = yStart + 0.5
End Sub