Selects a single object.
rhinoscriptsyntax.SelectObject (object_id)
rhinoscript.object.SelectObject (object_id)
object_id |
Required. Guid. The identifier of the object to select. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
rs.Command( "Line 0,0,0 5,5,0" )
id = rs.FirstObject()
if id: rs.SelectObject(id)
# Do something here...
rs.UnselectObject(id)