My code:
Private Sub LoadFile(ByVal Path As String)
Dim sDxfFile As String
Dim sDxfLayers As String
Dim x As Single = 0
Dim y As Single = 0
Dim z As Single = 0
Dim vItemProperties As Object
Dim fNoText As Boolean = False
Dim fNoBlock As Boolean = False
Dim fNoDimension As Boolean = False
Dim vRetHandles As Object
'Definition of the DXF File Name
sDxfFile = Path
' Import all the Layers
sDxfLayers = ""
If CAvax1.Add_DXF(sDxfFile, sDxfLayers, x, y, z, vItemProperties, fNoText, fNoBlock, fNoDimension, vRetHandles) = True Then
Me.Text = strAppName & " - " & Path
Else
MsgBox("Error Opening File")
End If
End Sub
This post has been edited by Gemalde: 20 September 2009 - 09:12 PM
Reason for edit: Added code tags
Sign In
Register
Help
Add Reply

MultiQuote