awei 发表于 2005-3-25 11:43:00

为何报错“选择集名称无效”

下面的代码


       For i = 0 To ThisDrawing.SelectionSets.Count - 1<BR>                                                                                       If ThisDrawing.SelectionSets(i).Name = NzdSSetHead + CStr(CurrentNzdID) Then<BR>                                                                                                                       ThisDrawing.SelectionSets(i).Erase<BR>                                                                                                                       Exit For<BR>                                                                                       End If<BR>                                                       Next


在条件满足执行Erase时有时报“选择集名称无效”,为什么,或者有哪些可能的情况呢


大多数不报,报得时候关闭重新打开执行代码,就没事了,

mccad 发表于 2005-3-26 21:54:00

倒过来删就没事。<BR>For       i =ThisDrawing.SelectionSets.Count - 1 To 0<BR>
页: [1]
查看完整版本: 为何报错“选择集名称无效”