On Error Resume Next Dim FilterSets As AcadSelectionSet If Not IsNull(FilterSets.Item("BlockRef")) Then Set FilterSets = ThisDrawing.SelectionSets.Item("BlockRef") FilterSets.Delete End If Set FilterSets = ThisDrawing.SelectionSets.Add("BlockRef") '创建过滤机制 Dim fType(0) As Integer Dim fData(0) As Variant fType(0) = 0 fData(0) = "BlockRef" '提示用户选择 FilterSets.SelectOnScreen fType, fData 这是我设定的在屏幕上选取块的过滤条件,可是为什么选不中块呢,总是提示显示0个对象,请高手指教!谢谢 |