Hey, i’m trying to change filter visibility on a list of independent views.
Zhukoven package does have a node like that - SetFilterVisibility, but for some reason it just doesn’t change it. I’ve looked into the code, and it seems pretty straightforward. I’ve even tried to simplify it, taking out the TRY statement but it seems to have broken it.
i’ve tried looking into similar topics but to no avail
this is zhukoven node unmodified
#Author Konstantin Zhukoven @ https://zhukoven.com #Tested to work with Dynamo 1.3.0+ import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager doc = DocumentManager.Instance.CurrentDBDocument view = UnwrapElement(IN) filter = UnwrapElement(IN) boolean = IN result =  viewlist =  TransactionManager.Instance.EnsureInTransaction(doc) try: for i in view: viewlist.append(i.SetFilterVisibility(filter.Id, boolean)) result.append(True) except: result.append(False) TransactionManager.Instance.TransactionTaskDone() OUT = (view,result)