这两天有时间试了一下,但是不知为何选择集对象数为0,图里可是有70多张图片呢。帮忙看看哪地方不对,谢谢。 On Error Resume Next Dim ss As AcadSelectionSet If Not IsNull(ThisDrawing.SelectionSets.Item("ss")) Then Set ss = ThisDrawing.SelectionSets.Item("ss") ss.Delete End If Set ss = ThisDrawing.SelectionSets.Add("ss") Dim filterType(0) As Integer Dim filterData(0) As Variant filterType(0) = 0 filterData(0) = "RASTER" ss.Select acSelectionSetAll, , , filterType, filterData MsgBox ss.Count, vbInformation 不知是不是过滤条件不对,所以 filterData(0) = "RASTERIMAGE" 我也试了,同样为0。
|