Add_CSpline2 example
Example for Add_CSpline2 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
Dim x1() As Single
Dim y1() As Single
Dim z1() As Single
Dim vItemProperties As Object
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim AvaxHandle As Integer
ReDim x1(4)
ReDim y1(4)
ReDim z1(4)
'Points for the spline nodes definition
x1(1) = 1 : y1(1) = 4 : z1(1) = 0
x1(2) = 3 : y1(2) = 1 : z1(2) = 0
x1(3) = 6 : y1(3) = 5.25 : z1(3) = 0
x1(4) = 12 : y1(4) = 0 : z1(4) = 0
'Color and width definition
iClr = 5
iWidth = 1
AvaxHandle = cAvax1.Add_CSpline2(x1, y1, z1, vItemProperties, iClr, iWidth, iStyle, iLayer)
End Sub