Set doc1 = cadapp.Documents.Open("F:\图幅下载管理\CAD数据\" + "097-616-11" + ".dwg")
Set doc2 = cadapp.Documents.Add
Dim ssetobj1 As AcadSelectionSet
Set ssetobj1 = doc1.SelectionSets.Add("aa")
ssetobj1.Select acSelectionSetAll
Dim Enrycount As Integer
Enrycount = ssetobj1.Count - 1
ReDim objcollection(0 To Enrycount) As Object
Dim i As Integer
For i = 1 To Enrycount
........
Next i