- 积分
- 2175
- 明经币
- 个
- 注册时间
- 2004-4-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-7-1 00:24:00
|
显示全部楼层
Sub t6() On Error Resume Next Dim i As AcadEntity Dim ft(0) , fd(0) As Integer Dim ss As AcadSelectionSet ThisDrawing.SelectionSets("CURRENT").Delete Set ss = ThisDrawing.ActiveSelectionSet ft(0) = 0: fd(0) = "BLOCKREF"
ss.clear ss.Select acSelectionSetAll, , , ft, fd For Each i In ss i.NAME = "XX"
MSGBOX i.NAME Next i ss.Clear ss.Delete End Sub 这样是不是可以把当前图形中的所有图块加入到一个选择集??
| |
|