GetVisibility as Boolean for a View

Hi guys,

I need help with a filter script that Im doing right now.
There is one node missing and I dont know how to do it.
A list of booleans (True/False) is necessary so I can split my filters from the ones which are visible in my view and the ones that arent visible.
I found something on the Revit API but dont know how to make that to a python script. (Still trying to learn that)
https://www.revitapidocs.com/2015/2f6634a9-b590-7674-e3cf-e5364eabdaf8.htm

Public Function GetVisibility ( _
	category As Category _
) As Boolean

Any idea?

in other words:

How to access the filter visibility and get a List of True/False values from it.

You can either use a node from the Rhythm package or write a short Python script like this:

view = UnwrapElement(IN[0])
pfes = UnwrapElement(IN[1])

OUT = [view.GetFilterVisibility(pfe.Id) for pfe in pfes]
2 Likes

Didn’t know it can be so easy :smiley:
Thank you so much!!

1 Like