明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 589|回复: 2

[提问] 有没有什么办法可以知道当前有没有选择东西

[复制链接]
发表于 2015-10-10 01:25 | 显示全部楼层 |阅读模式
5明经币
本帖最后由 tryhi 于 2015-10-11 17:33 编辑




像这样的命令,中间过程除了输入命令后按空格之外,没有按下任何空格或者回车(注:这是一张假的特别制作出效果的GIF图)


有点像快速选择的命令,快速选择你先选择后运行命令,出来的界面是不一样的。

如果当前有选择的话,可以用ssget得到非空值来判断为有选择,但是如果没有选择的程序会停下来等待你输入,所有用ssget应该是没有办法的

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

最佳答案

"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2015-10-10 01:25 | 显示全部楼层
(ssget "i")
回复

使用道具 举报

发表于 2015-10-10 08:39 | 显示全部楼层
ssgetfirst


Determines which objects are selected and gripped

(ssgetfirst)
Returns a list of two selection sets similar to those passed to sssetfirst. The first element in the list is always nil because AutoCAD no longer supports grips on unselected objects. The second element is a selection set of entities that are selected and gripped. Both elements of the list can be nil.

NoteOnly entities from the current drawing's model space and paper space, not nongraphical objects or entities in other block definitions, can be analyzed by this function.
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-21 05:56 , Processed in 0.181998 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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