LockObjects

Locks one or more objects.  Locked object are visible, and they can be snapped to.  But, they cannot be selected.

Syntax

rhinoscriptsyntax.LockObjects (object_ids)

rhinoscript.object.LockObjects (object_ids)

Parameters

object_ids

Required.  List.  A list of strings or Guids identifying the objects to lock.

Returns

Number

The number of objects locked.

Example

import rhinoscriptsyntax as rs

ids = rs.GetObjects("Select objects to lock")

if ids: rs.LockObjects(ids)

Also See

IsObjectLocked

LockObject

UnlockObject

UnlockObjects