DetailLock

Returns or modifies the projection locked state of a detail.

Syntax

rhinoscriptsyntax.DetailLock (detail_id, lock=None)

rhinoscript.view.DetailLock (detail_id, lock=None)

Parameters

detail_id

Required.  String or Guid.  The identifier of an existing detail view.

lock

Optional.  Boolean.  Sets the lock state for this detail. If None, then the detail is not modified and it's lock state is returned.

Returns

Boolean

If lock==None, then the current projection lock state of the detail.

If lock is True or False, then the previous projection lock state of the detail

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

detail = rs.GetObject("select a detail", rs.filter.detail)

if detail: rs.DetailLock(detail,True)

Also See

IsDetail

IsLayout