FamilyType.ByName not detecting some instances

I’m encountering an issue with this FamilyType.ByName node that can be simplified like so:

I have a list of families within my Revit model, and I would like for each instance of the family in the model to be detected by this script. In the first image, the node is not detecting Roof - Typical, although it is in the model. On the other hand, in the second image, I enter the family name of the door in my model and it is detected. How come there is an inconsistency with this? About half of the families in my model are not being picked up.

Are the family types showing up in the FamilyTypes node drop down?

Ohh it’s not, would the solution here be to just use a different roof family that is under these family types? Or is there another way to index the existing “Roof - Typical”

Hi
Try elementtype by name for system families

There are multiple ways…