Dim filterType1(1) As Integer, filterDate1(1) As Variant
Dim SsetObj As AcadSelectionSet
filterType1(0) = 0 filterDate1(0) = "Text" filterType1(1) = 8 filterDate1(1) = LayName
Set SsetObj = ThisDrawing.SelectionSets.Add("WenBen")
SsetObj.Select acSelectionSetAll, , , filterType1, filterDate1
Debug.Print SsetObj.Count
SsetObj.Delete
我想统计指定图层上有多少文本,按照上面的程序,总是显示是0,不知哪里不对,请高手指点 |