False and true problem

Hello community,
I turn to you because I can’t find the solution to my problem although I spent the weekend on it!
In my case I would like to create views based on existing levels but I’m not interested in all of them, so I tried to set up a script but it doesn’t work as I want.
On the picture we have:

in 1 the list of all existing views
in 2 the reduced list for ease of use
in 3 a filter that shows the levels I want with the full names (like the picture below)
But in 4 it shows me only 1 “true” when there are several.
and to finish in 5 in the dictionary it puts me only one view in “in the list” but that corresponds to the 0 of the list 1

I can’t figure out probably something I did wrong but I don’t see or understand :frowning:

Can someone please explain and help me?

Thanks in advance and have a nice day.

Julien
Bim Modeller

Hi @julien.zabala!

Look into List Lacing. Set it to Cross Product. Ang set filtering levels to L2.

Hi Julien,

you don’t need all these steps.
Don’t sort the level names to not change the level elements order.

You can replace 4 nodes with Element.Name


If the longest lacing doesn’t work, use the cross product lacing on == node.

Super thanks a lot it works :slight_smile: