Description
Déverrouille tous les details sur tous les layouts.
Voir aussi le script LockDetailsOnAllLayouts.
Le script suivant fonctionne sur :
- Rhino pour Windows ;
 - Rhino pour macOS.
 
Script par MLAV.LAND, sous licence GNU GPL 3.
Code
import rhinoscriptsyntax as rs
 
# Iterate through each layout view
for view_name in rs.ViewNames(return_names=True, view_type=1):
    # Set the current view to the layout
    rs.CurrentView(view_name)
    
    # Get all details in the layout
    detail_ids = rs.ObjectsByType(32768) # 32768 is the object type constant for detail views
    
    # Lock all the details found in the current layout
    if detail_ids:
        for detail_id in detail_ids:
            rs.DetailLock(detail_id, lock=False)