I was originally using the new Autodesk Structural example that comes in Revit. Very interesting model with complex geometry. That is when I first found the problem. If you try with it you will notice that other elements are not selected as well.
That’s the way Autodesk intended it, the ElementLevelFilter doesn’t consider ReferenceLevels.
I’m working on additional Filter documentation/tutorials and will be sure to mention this caveat. Granted there are a lot of caveats when dealing with the Revit API.
Attached is my script. Revit file it is too large to share. I believe you should have it by default once you install Revit 2024 IssuesWithFilterByFLoorV1.gh (10.4 KB)
Everything looks OK here. I suspect you are running into your 100 limit on the Query Elements component. You can set that higher or remove it all together with the ZUI -
An alternative way to do this gather by Category, then cast to Level to create branches of each level. This is less particular about Reference Level Parameters & more in line with Revit’s internal hierarchy.
Sorry about that. That was completely user error. It works changing the limit.
What is the ZUI? I used the search in Grasshopper thinking it is a component but it looks like it is not. I google it and the reference I found for ZUI is below but not much information about it.
Zoom UI is a fundamental Grasshopper feature, most often seen/used in components like Merge or adding a input to a scripted component. This feature is being used more in RiR as well as Rhino 8 GH1 components to allow for more complex workflows without the clutter. GH2 has some new zoom features like David mentions in the post below.
Also worthy of note is that in the newer components you can Shift+Click to Expose all Possible / Cntl+Click to Collapse unconnected (also available by right clicking on the component)
Thanks for the clarification. For a second a thought it was a component that lets you configure certain general settings. Now I know the proper name so I can start calling it properly. I used to refer as “zoom in a lot near the parameter input”