Locks a group of objects. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.LockGroup (group_name)
rhinoscript.group.LockGroup (group_name)
group_name |
Required. String. The name of an existing group. |
Number |
The number of object that were locked if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
names = rs.GroupNames()
if names:
for name in names: rs.LockGroup(name)