Work with Selection Sets使用选择集
A selection set can consist of a single object, or it can be a more complex grouping: for example, the set of objects on a certain layer. A selection set is created by requesting a user to select an object in the drawing area before a command is started through pick first selection or at the
Select objects:
prompt when a command is active.
选择集可以由单个对象组成,或者是一个复杂的编组:比如某图层上的一组对象。选择集的典型创建过程,是在通过先选择后执行方式启动命令前,或在命令行出现
选择对象:
提示时,要求用户选择图形中的对象。
Selection sets are not persistent objects, if you need to maintain a selection set for use between multiple commands or future use, you will need to create a custom dictionary and record the object ids found in the selection set as a record.
选择集不是持久生存的对象,如果需要在多个命令间维持选择集或为以后的使用保留选择集,就需要创建一个自定义字典并记录选择集中各对象的ID。
Topics in this section本节内容
· Obtain the PickFirst Selection Set 获得先选择后执行选择集
· Select Objects in the Drawing Area 在图形区域选择对象
· Add To or Merge Multiple Selection Sets 添加或合并多个选择集
· Define Rules for Selection Filters 定义选择集过滤器规则
· Remove Objects From a Selection Set 从选择集删除对象
1、Obtain the PickFirst Selection Set获得先选择后执行选择集
The PickFirst selection set is created when you select objects prior to starting a command. Several conditions must be present in order to obtain the objects of a PickFirst selection set, these conditions are:
· PICKFIRST system variable must be set to 1
· UsePickSet command flag must be defined with the command that should use the Pickfirst selection set
· Call the SelectImplied method to obtain the PickFirst selection set
在启动命令之前选择对象就创建了PickFirst选择集。获得PickFirst选择集对象必须具备下列几个条件:
· 系统变量PICKFIRST必须设置为1;
· 要使用PickFirst选择集的命令必须定义好UsePickSet命令标志;
· 调用SelectImplied方法获得PickFirst选择集;
The SetImpliedSelection method is used to clear the current PickFirst selection set.
SetImpliedSelection方法用来清空当前PickFirst选择集。
Get the Pickfirst selection set 获得PickFirst选择集

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/46477.html