Add_DWG example
Example for Add_DWG 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 sDWGFile As String
Dim sDWGLayers As String
Dim x As Single
Dim y As Single
Dim z As Single
Dim vItemProperties As Object
Dim fNoText As Boolean
Dim fNoBlock As Boolean
Dim fNoDimension As Boolean
Dim vRetHandles As Object
Dim AvaxHandle As Boolean
'Definition of the DXF File Name
sDWGFile = My.Application.Info.DirectoryPath & "\..\Sample.DWG"
' Import all the Layers
sDWGLayers = ""
AvaxHandle = cAvax1.Add_DWG(sDWGFile, sDWGLayers, x, y, z, vItemProperties, fNoText, fNoBlock, fNoDimension, vRetHandles)
End Sub