Is there a way to filter by type parameters of all elements in a a single level?


#1

Is there a way to filter by type parameters of all elements in a a single level? I have had success filtering by family parameters with Get.Parameter but it does not dig deep enough into the types parameters within the family type properties.

Example:
Search all elements in level 1, If Door-schedule Filter is Checked then pull into list.


#2

Select all elements of category. Filter by Level to get a list of doors on level. Get the family type. Get the Door Schedule Filter Value. Test for being equal to 1. Filter list of doors on level by this bool.


#3

Jacob,

Thanks
What is the best command to search for Type Parameters? I have not been able to find any tool to pull Type Parameters on Instance Parameters?


#4

@reid.schultz

Element.ElementType in conjuction with Element.Parameters, the input needs the green box with the Id though


#5

Marcel,

What do you mean the input needs the green box with the ID? Am I missing a setp?


#6

With this I get Warning. Internal Error, Please Report, Dereferencing a non pointer.


#7

Can you do this for only one category at a time or is there a way to select all elements on Level 1 in the same run?


#8

Not every element you selected has that parameter, hence the null values. Selecting all elements at level will do this.

The method you previously posted does this for every category at once in one run. If you want to select things differently look into other selection methods. Check the Revit > Selection set of your library. Archilab and Rhythm both have great selection nodes as well. And Clockwork. And MEPover. And a bunch more.


#9

Hi Bro,
The Warning is null reference warning
Please make sure that all Element Types Contains the Parameter (BIM4FM) even it has no values .so that there will be null values hence the warning can be avoided.
else you filter elements by type and then run GetParameterValueByName node


#10


This is an effective way to filter out elements by Level at least.
I found that this is generally more efficient than getting alle elements of a level and then filtering the specific family you’re looking for.