== lacing crossing -- list filter bool mask


When i set == node to crossing and wire it to list.filterbyboolmask (lacing shortest)you get an error
if you put the node List.AnyTrue in between it works just fine.

It took me quit a long time to figure it out.
Can anybody explane why?.

thnks Edwin

1 Like

Different data structures. Using X-product will produce a 2D list (your mask) and your list input into FilterByBoolMask node is probably a different data structure (1D maybe?..you could at least provide some better screenshots, and the error, so we aren’t left guessing). List.AnyTrue node will output a 1D list as it will evaluate each sublist and return a single object for each one. That would explain why it works, i.e. 1D list to 1D list is required for the FilterByBoolMask to work, whereas 1D list to 2D list wont work which would explain your problem.

Also, if Dynamo has nodes OOTB, like AnyTrue, then you should use that instead of a package.

dummy.dyn (17.6 KB)

this is the .dyn file

I try to get only the structural plans from revit then set it in order on level height
from bottom to top, the ultimate go is to retrieve the structural level below the current one.


I can’t explain the error any better than @Thomas_Mahon did, but I think I can help you get your result.

Instead of using a bool mask, take the list of sorted levels, insert a ‘null’ value at the front of the list, and remove the last item in the list. You now have a list of levels sorted by height, and a list of the level below each of those levels.

Edit: spelling

I am affraid that i can not follow you but i figure it out on another way :smiley:.

Here is the dyn file.

dummy.dyn (28.6 KB)