- 积分
- 590
- 明经币
- 个
- 注册时间
- 2003-8-5
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Dim I As Integer Dim GpCode(0 To 1) As Integer Dim DateValue(0 To 1) As Variant GpCode(0) = 0: GpCode(1) = 5 DateValue(0) = "TEXT": DateValue(1) = 12195 Dim FilterType As Variant, FilterDate As Variant FilterType = GpCode FilterDate = DateValue Dim SsetObj As AcadSelectionSet If ThisDrawing.SelectionSets.Count <> 0 Then For I = 0 To ThisDrawing.SelectionSets.Count - 1 Set SsetObj = ThisDrawing.SelectionSets.Item(I) SsetObj.Delete Next End If Set SsetObj = ThisDrawing.SelectionSets.Add("AA") SsetObj.Select acSelectionSetAll, , , FilterType, FilterDate
以上代码加上句柄后,最后一句就不能执行?(其中句柄值为图形中已存在的)
请高手指点门路....
谢谢!!
|
|