Type Name is listed as Family Name

Hey everyone,
It’s been a while since I’ve used Dynamo so I might be a little rusty.
But can someone explain why I’m not getting the value of my Family Name? Instead I’m getting the Type Name twice?

Have you identified that object in the model? Does the Family Name match the Type Name? Does the object have a Family and a Type? If it’s a model-in-place instance I believe you just get a Type and Revit treats the Family as the same thing (since you don’t have in-place Families).

Hey Nick,
I don’t know if I understand everything you are saying, but this is my object in the model:
image
It’s not an in place family, it’s a loadable family from our library with a family name and a type name.
And when I try to extract ‘Family’ it gives my the type first, then the family.
And when I try to extract ‘Family Name’ it’s actually empty…


I just want to get all instances of this family regardless of the type…

I was going from all elements of category and wanted to filter the family name, but maybe there is another approach?

I’m sorry, I understand your confusion now. I just quickly looked at both outputs and thought they were showing the same value.

A FamilyInstance doesn’t have a direct relationship with its Family without going through the FamilyType. The Family parameter is actually returning the FamilyType here because that’s the relationship that exists with the FamilyInstance. You can get the Family from the FamilyType though, it just takes one extra step.

The issue here is that Revit treats some Properties as Parameters within the API, but if you look at your FamilyInstance parameters within the UI, you’ll see that there is no Family or Family Name parameter. They’re properties that are also stored as parameters in the API (which is why they show up in Dynamo as such) but don’t actually store the information you think they do.

1 Like