我用的如下函数在双击时候打开dwg文件,发现不能在这打开的dwg文件上进行粘贴工作,一粘贴就出错,不知道什么原因
Private Sub tv_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tv.DoubleClick
Dim node As TreeNode = tv.SelectedNode
If node Is Nothing Then
Return
End If
If node.Tag = 0 Then
Dim fileName As String = CADTempFolder + node.Name + ".dwg"
If System.IO.File.Exists(fileName) Then
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(fileName, False, "")
End If
End If
End Sub