List logic....What am I missing


The given Dynamo script Works on one model but not on some other model, not able to figure out what the issue is List.Filterbyboolmask towards the end should have the required elements, i think thats where the issue is……but not sure

You are trying to filter 5 rooms with 2215 booleans. numbers of both lists must match to get this to work.

But the same script works for another file

There could be several reasons.
Can you do a screen grab of it working and then a screen grab of it not working on a different project.

Most obvious reasons it’d not work would be that you don’t have the parameter, “Room Name (For Schedule)” in the non-working project or that the rooms are not called “ROOM”.

We have all the required parameters created specific to the project


This is what it’s supposed to do, identify the finishes and assign a black dot as value, above is an example of not working.
below is a completed one

Likely this is luck based on how the working project’s data is returned - you just happened to have the right combination of values to make it work for that project; or at least appear to work.

I recommend removing most if not all of the List.Flatten nodes and inserting one between the AllElementsOfCategory node that is working off a list of categories. This should make it so the lists of elements are always flat, allowing you to utilize a flat mask for the FIlterByBoolMask nodes downstream. Also the List.SortByKey nodes aren’t doing you any favors - you’re rearranging the dataset to put it right back as it was which isn’t helping.

Assuming the goal is to find rooms which have a wall finish, the == node likely wants to be set to have @L1 for the element, but it really seems that a dictionary would be a better method here. Hard to say without a dataset.

I meant can you show us the outputs from the working one VS the node outputs from the not working one.


The first one doesn’t work, the second one is the one that gives the result

@jacob.small is the dark see through background a new forum feature? It’s really, really difficult to read for me. :frowning:

@balamurali.kirutika What’s coming out of A - I think that could be your issue.

Also if A is broken, B will also be broken. What’s coming out of B?

Notice the empty list I’ve circled? If that’s empty you’re obviously not getting an output.