Edge References - Python Code troubles

Hello Dynamo Friends :slight_smile:

At automatic dimensioning i sometimes get in trouble because some Elements don´t give references and that will mess up the whole graph. So i want to filter out all Elements that don´t give references by creating a bool list that i also need for filtering views, columns and so on later.

I use the node from @Alban_de_Chasteigner, my bad he built in that great function to filter out all elements that give none results. Cant create a boll list like that. I tried to edit the code to remove this filter function but i failed many times and so i ask for help.


I tried that:

if isinstance(IN[0], list): OUT = allHorizEdges, allHorizReferences, allVertEdges), allVertReferences
else: OUT =  allHorizEdges[0], allHorizReferences[0], allVertEdges[0], allVertReferences[0]

And that gives now empty lists for elements that gave references before…so i just made it worse :smiley:
Happy about any advice!

Looks like i could solve that with list map