Dynamo doesn't filter based on type

Hi All,

I’m trying to add a mark to a particular type of flex duct.

For some reason my script tags all flex ducts? I’m not sure what I’m doing wrong?

Thank you for any help in advance!

Try this:

The familytype.name node won’t work with Revit flex duct elements, only family type elements, so you need to instead get the flex ducts’ “Family and Type” parameter and filter that way.

@jackchaskell

I believe I must still be doing something wrong since I’m getting a bunch of warnings when I try to run the scrips?

Apologies, I had the string node plugged into the wrong input - the “HAC” code block is meant to be for the searchFor input of string.contains

Hi @Yannick,

I think your filter is fine, but you are feeding your complete list to the SetParameter node.
So remove the top wire and connect the “boolmask” and “setparameter” node like below.

Awesome thank you so much!