Object reference not set to an instance of an object

I’m trying a routine to import nested families parameterized at the same point where it contains blocks with the same names as the families, that is, a routine to import families according to cad automatically, but I come across this error in the List node. AllIndicesOf and List.IsEmpty.
Whats wrong? What can I do?


02º - Automação mobiliário.dyn (85.4 KB)

It looks like the List.Flatten node has a bunch of nulls. Those will cause issues and should probably be filtered out before anything else.

1 Like