- 积分
- 2262
- 明经币
- 个
- 注册时间
- 2004-12-30
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2013-11-7 09:40:30
|
显示全部楼层
Private Sub test_Click()
On Error Resume Next
Dim returnobj As AcadEntity
Dim mm As AcadEntity
Dim basepnt As Variant
Dim icount, ocount, i
ThisDrawing.Utility.GetEntity returnobj, basepnt, "ÇëÑ¡ÔñÒ»¸öͳ¼Æ¶ÔÏó"
ThisDrawing.SelectionSets("XZJ001").Delete
Set osset = ThisDrawing.SelectionSets.Add("XZJ001")
osset.SelectOnScreen
icount = 0
ocount = osset.Count
For Each mm In osset
If mm.name = returnobj.name Then icount = icount + 1
Next mm
MsgBox icount
osset.Delete
End Sub
验证通过 |
|