GetCurveLines example
Example for GetCurveLines method
Dim AvaxHandle As Integer
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
CAvax1.StartAvax()
AddCurve()
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 AddCurve()
Dim xStart As Single
Dim yStart As Single
Dim zStart As Single
Dim xEnd As Single
Dim yEnd As Single
Dim zEnd As Single
Dim xc As Single
Dim yc As Single
Dim zc As Single
Dim vItemProperties As Object
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
xStart = 10
yStart = 10
zStart = 0
xEnd = 40
yEnd = 40
zEnd = 0
xc = 20
yc = 30
zc = 0
AvaxHandle = CAvax1.Add_CurveArc(xStart, yStart, zStart, xEnd, yEnd, zEnd, xc, yc, zc, vItemProperties, iClr, iWidth, iStyle, iLayer)
CAvax1.Command = Avax.AvaxCommand.AutoLimits_c
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
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 Answer as Integer
Answer = CAvax1.GetCurveLines(AvaxHandle, x1, y1, z1, x2, y2, z2)
For i As Integer = 1 To x1.Length - 1
x1(i) += 1
y1(i) += 1
Next i
For i As Integer = 1 To x2.Length - 1
x2(i) -= 1
y2(i) -= 1
Next i
CAvax1.Add_PolyLine(x1, y1, z1, Nothing, 1, 1, -1, -1)
CAvax1.Add_PolyLine(x2, y2, z2, Nothing, 3, 1, -1, -1)
End Sub