有没有什么办法可以知道当前有没有选择东西
本帖最后由 tryhi 于 2015-10-11 17:33 编辑像这样的命令,中间过程除了输入命令后按空格之外,没有按下任何空格或者回车(注:这是一张假的特别制作出效果的GIF图)
有点像快速选择的命令,快速选择你先选择后运行命令,出来的界面是不一样的。
如果当前有选择的话,可以用ssget得到非空值来判断为有选择,但是如果没有选择的程序会停下来等待你输入,所有用ssget应该是没有办法的
(ssget "i") 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.
页:
[1]