Returns or modifies the projection locked state of a detail.
rhinoscriptsyntax.DetailLock (detail_id, lock=None)
rhinoscript.view.DetailLock (detail_id, lock=None)
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. |
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. |
import rhinoscriptsyntax as rs
detail = rs.GetObject("select a detail", rs.filter.detail)
if detail: rs.DetailLock(detail,True)