找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1870|回复: 2

[求助]:当前选择集 与 选择集反应器

[复制链接]
发表于 2005-3-23 07:59:06 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
1,如何得到当前选择集,
2,如何创建 当前选择集 反应器
3,AcEdInputContextReactor能否实现  当前选择集反应器 功能?
AcEdInputContextReactor的两个函数
AcEdInputContextReactor::beginSSGet,
This function provides notification for the start of an AutoCAD selection set

acquisition operation.
AcEdInputContextReactor::beginEntsel
This function provides notification for the start of an AutoCAD entity selection

operation.
selection set acquisition 与 entity selection 有何区别?

补充:
我说的 当前选择集 不是用 select 命令创建的选择集
而是,在不用命令的情况下, 直接用鼠标选择图形实体 而创建的选择集

我说的 当前选择集 反应器 类似 AutoCAD 属性窗口 中的反应器(当有图形选中时,AutoCAD 属性窗口自动 显示选择的图形的属性)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2005-3-24 14:42:54 | 显示全部楼层
请高手指点下啊,很想了解的说!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-3-26 08:43:50 | 显示全部楼层
extern "C" Acad::ErrorStatus

acedGetCurrentSelectionSet(

AcDbObjectIdArray& sset);

sset Output filled in with object IDs of all objects in current selection set

This function fills sset in with the object IDs of all entities in the current selection set within AutoCAD.

The "current selection set" may be one of the following: a pickfirst set, a selection set selected by the select command or any other command that does a selection (that is, similar to the "Previous" selection option), or the most recent set from an ssget.

If a pickfirst set is available it will always be used. If no pickfirst set is available, then whichever of the other two types is available will be used. If both of the other two types are available, then whichever was most recently created will be used.

If a pickfirst selection set is "selected" by a call to this function, then the entity highlighting and grips will disappear just as they would when any AutoCAD command uses a pickfirst selection set.

If an ssget type of selection is "selected" by a call to this function, then sset will essentially be a copy of the selection set and the original ssget selection set will still be valid.

Only certain AutoCAD commands create a selection set that can be found by acdbGetCurrentSelectionSet(). These commands are listed below:

ACISOUT AMECONVERT ARRAY ATTEXT AUDIT
BHATCH BMPOUT CHANGE CHPROP CONVERT
CONVERTPOLY COPY COPYCLIP CUTCLIP DIVIDE
DVIEW DXFOUT (partial) ERASE EXPLODE EXTEND
EXTRUDE GROUP HATCH HIDE INTERFERE
INTERSECT LIST MASSPROP MEASURE MIRROR
MOVE MVIEW OOPS PEDIT REGION
REVOLVE ROTATE SCALE SECTION SELECT
SLICE SPELL SPLINE STLOUT STRETCH
SUBTRACT TRIM UNION VPVIS WBLOCK
WMFOUT XCLIP      

Note that the OOPS command, a Button 1 down on selected entity, and an implied move, within and across documents, also sets the selection set.

selection set 是选择集,只有以上列出的一些命令可以产生选择集,entity selection 是选择实体,很多交互式命令都要求选择实体,比如创建组,要求选择实体。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-22 11:31 , Processed in 0.362827 second(s), 33 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表