Levels names


#1

Hi all, I want to do a filter with a list. Maybe List.Map, No idea. I got all the walls in the model . With wall.GetParameterValueByName[“Base Constraint”]; I got all the levels with Elemen.Name Because this list return all the objects like a Revit.Elements.Level. I don’t have problem here. I try to do the same with the parameter “Top Constraint” With wall.GetParameterValueByName[“Top Constraint”]; I would like to get all the levels with Elemen.Name Because this list return different objects like a System.String and Revit.Elements.Level. The walls that not have Top Constraint return “Unconnected” like a String Object. I would like to do a filter to access only to the objects which are Revit.Elements.Level and get there Elemen.Name and Level.Elevation. Somebody knows any useful “node”, maybe List.Map or List.FilterByBoolMask. Thanks


#2

Hello Javier,

 

Filter.ByBoolMask is what you need:

 

 


#3

Hi Javier,

You can use some custom nodes to get filter elements parameter value containing “Unconnected”. See below example.


#4

It seems i and Mostafa replied at same time :)