Selecting Windows from their respective levels

Hi All,
I have a script that selects windows from their respective levels and applies a 2 digit level code derived from the level parameter. The script works fine, however it requires some user input with selecting the levels from the file. I am looking for guidance/ suggestions to create a neater solution of selecting elements per level.

Please see my current workflow below;
Select level from Levels node, Select all elements on that level, Create a list of the separate levels, Use Element get category to filter the windows on each level.

As mentioned is there a solution to reverse the process and select all of the windows and then separate them out per level.

Many thanks in advance.
Rico

Hi and welcome to the forum!

You could use these nodes (if you are using every single level)

2 Likes

To your second question, you could reverse the progress like so:

1 Like

Thanks MVE, that was super helpful. Ive aligned the script to your suggestion and its working well.

1 Like