Sorting elements by level

Hi,
I’m trying to sort all windows by level and then by type, so i can count how many windows of each type are in a single level.
I started the algorithm but i don’t know how to link the node of “All element of a level” with the node “Categories”.
does any one have an idea how to do this task?

3 Likes

Hi @Vikram_Subbaiah,
Thank u so much for your proposition… but i still can’t get the windows by level, when i run the program i only obtain one element (one level) in the list including all the windows, while i have 5 levels in my project.; I couldn’t find where the problem is coming from.

Hi @firdaouss

I see your revit is in french, so try with “Niveau” instead of “level” :slight_smile:

1 Like

Hi @Mostafa_El_Ayoubi
Actually i tried before and it didn’t work :pensive:

@firdaouss
can you just try and extract the level of the windows with the element.getparametervaluebyname node?
see if that works? Make sure you use capital letter at the begining of the parameter name “**Level" or "N**iveau” as this is case sensitive.

1 Like

@Mostafa_El_Ayoubi
Merci Mostafa. Indeed the problem was the capital letter at the begining of Niveau :wink:

1 Like

De rien :slight_smile: