- 积分
- 24557
- 明经币
- 个
- 注册时间
- 2004-3-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-5-17 14:45:00
|
显示全部楼层
选择集+过滤器
Sub test()
'查找所有的单行文字,且包含文字”123“ Dim ss As AcadSelectionSet Set ss = ThisDrawing.ActiveSelectionSet ss.Clear Dim ft(1) As Integer, fd(1) As Variant ft(0) = 0: fd(0) = "Text" ft(1) = 1: fd(1) = "*123*" ss.Select acSelectionSetAll, , , ft, fd MsgBox ss.Count
End Sub
|
|