判断一个物件当前是否处于选中状态。
rhinoscriptsyntax.IsObjectSelected (object_id)
rhinoscript.object.IsObjectSelected (object_id)
object_id |
必须参数。字符串或 Guid。物件的 ID 。 |
True |
物件处于选中状态。 |
False |
物件没有被选择。 |
import rhinocsriptsyntax as rs
# Do something here...
if rs.IsObjectSelected(object):
print "The object is selected."
else:
print "The object is not selected."