cropbox dynamo python
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
#The inputs to this node will be stored as a list in the IN variables.
views = UnwrapElement(IN[0])
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
for v in views:
v.CropBoxVisible = False
TransactionManager.Instance.TransactionTaskDone()
#Assign your output to the OUT variable.
OUT = 0