Dim AcadDoc As Object
Dim wb As Object
Set AcadDoc = acadapp.ActiveDocument
'遍历该程序所在文件夹内的所有dwg文件
Dim i, j As Integer
i = 0
mydir = Dir(App.Path & "\*.dwg", vbNormal)
Do While mydir <> ""
Set wb = AcadDoc.Open(App.Path & "\" & mydir)
'Set wb = GetObject(App.Path & "\" & mydir)
If mydir = "标准图框.dwg" Then
GoTo nextdo
End If