Element Type Picker not working

Can someone explain to me why in the second script for the floor the element type picker does not work ?

Hi Constantin Gold,

The Element types picker is expecting a Family.

Note that when querying Families the output is text, best to use the Picker or Family Filter to get a particular Family, or query types with the Family Name.