CopyOutside example
Example for CopyOutside method
Dim AvaxHandle As Integer
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Call CAvax1.StartAvax()
AddPolyline()
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
Sub AddPolyline()
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
ReDim x1(6)
ReDim y1(6)
ReDim z1(6)
x1(1) = 10 : y1(1) = 10 : z1(1) = 0
x1(2) = 40 : y1(2) = 10 : z1(2) = 0
x1(3) = 50 : y1(3) = 40 : z1(3) = 0
x1(4) = 30 : y1(4) = 50 : z1(4) = 0
x1(5) = 0 : y1(5) = 10 : z1(5) = 0
x1(6) = 10 : y1(6) = 10 : z1(6) = 0
iClr = 1
iWidth = 1
AvaxHandle = CAvax1.Add_PolyLine(x1, y1, z1, 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 [Handles](1) As Integer
Dim Offset As Single
Dim vRetHandles As Object
Dim Answer As Boolean
[Handles](1) = AvaxHandle
Offset = 3
Answer = CAvax1.CopyOutside([Handles], Offset, vRetHandles)
End Sub