- 积分
- 295
- 明经币
- 个
- 注册时间
- 2003-7-22
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2004-5-3 14:40:00
|
显示全部楼层
我也经常碰到IAcadselectionset的问题,帮助文件里也没有,下问说可以有128个selection sets,但是程序中好象只允许一个存在。我每次都只能采用以下方式进行,否则就会出错,请各位发表看法。
Set Sset = ThisDrawing.SelectionSets.Add("Temp") Sset.Clear
Sset.AddItems Entitys ThisDrawing.SelectionSets("Temp").Delete
To add a new member to the collection, use the Add method. To select a specific selection set, use the Item method. To delete a specific selection set, use the Delete method found in the SelectionSet object. You can create up to 128 selection sets in your drawing.
There can be only one instance of the SelectionSets Collection. The SelectionSets Collection is predefined for each drawing. You can make multiple references to it by using the SelectionSets property. Once done with an object, the reference is automatically released. |
|