Good morning.
I am trying to look for a node that allows me to enter a list with sublists of elements, a list of views, and a visibility configuration that should be applied to the elements in the view and I have not been able to find one, any recommendations, I only found the node " Element.OverrideInView" what happens is that it doesn’t have the input for views… Help… thanks…
ESTRUCTURE INPUTS
Code in Python example …?
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
elements = UnwrapElement(IN[0])
views = UnwrapElement(IN[1])
overrides = UnwrapElement(IN[2])
if not isinstance(elements, list):
elements = [elements]
if not isinstance(views, list):
views = [views]
TransactionManager.Instance.EnsureInTransaction(doc)
for element in elements:
if hasattr(element, 'Id'):
for view in views:
view.SetElementOverrides(element.Id, overrides)
TransactionManager.Instance.TransactionTaskDone()
OUT = elements
The code does not work, any recommendations… please