Difference between selecting elements from loadable and system families

The goal of the script I’m making is to select in Revit the elements based on a certain parameter, could be instance, could be an type parameter. This is working well, except that it seems there is a difference between selecting on a type parameter for loadable families and for system families.

When the category is for example ‘walls’, than my script is only working when the nodes are connected following the black wires. When the category is for example ‘doors’, than it’s only working when the nodes are connected following the purple wire.

Is there a solution to select all elements, either on an instance or type parameters, and directly for loadable and system families?

Hi @joris.vanbossche2,

You could try the below nodes of the “Rhythm” package.

TypeOrInstance

Kind regards,
Mark

These nodes are not filtering on a certain parameter value :frowning:

Hi Joris,

I’m not sure what your input looks like, but maybe it’s possible like below.

Kind regards,
Mark

If it’s an instance parameter you should be fine with system or loadable families because you can get the family instance. For type parameters you need the element type or the family type. Use Element.ElementType to get these for both system and loadable families.

2 Likes