Some disclaimers first:
- If we want to use the "All elements In Active View"-node as the element input for the node below, we have to enable show hidden elements before we run the definition. (You know, the lightbulb.)
If you get the elements you're checking from other nodes: no problem.
- If the elements are in a hidden category it can't be filtered out. It only applies to hidden elements. Hopefully, someone will prove me wrong and dig up something in the API to facilitate this issue.
Here is the .dyf-file with the Python script:
And here's what it does:
(Tip: Do you wanna learn some Python syntax for Dynamo/Revit use? open up one of Andreas Dieckmanns nodes in the Clockwork package and double click the Python scripts!)