Hi there! I am trying to delete view filters from selected view templates all at once. And then, copy some other view filters into them form an existing one.
I can select both separately but i do not know how to retrieve the used view filters from the existing view templates prior to replace them.
Can you give me a hand on this one?
Basic arrangement something like this? Just use a View.Filters node to get the filters from the template/view that you want to copy from
If there is no node, you could utilise revit api in python to get the filters for a view. Then check which ones to delete then remove them.
Get Filters - GetFilters Method
Remove Filter - RemoveFilter Method
Do you want to disconnect the filters or delete them altogether? With the latter you won’t need to disconnect them from the VT’s