IsObjectSelectable

Verifies that an object is selectable.  Objects that are locked, hidden, or on locked or hidden layers cannot be selected.

Syntax

rhinoscriptsyntax.IsObjectSelectable (object_id)

rhinoscript.object.IsObjectSelectable (object_id)

Parameters

object_id

Required.  String or Guid.  The identifier of an object.

Returns

True

The object is selectable.

False

The object is not selectable.

Example

import rhinoscriptsyntax as rs

# Do something here...

if rs.IsObjectSelectable(object):

rs.SelectObject( object )

Also See

IsObject

IsObjectHidden

IsObjectInGroup

IsObjectLocked

IsObjectNormal

IsObjectReference

IsObjectSelected

IsObjectSolid