Nested family - finding parameter value

Hi everyone,

I am trying to get information from a window family. The window family contains a nested family as a “family type” parameter allowing the user to swap out the swing direction of the window panel.

I can get the type, for example, Left Hinged, Right Hinged, however, it does not show the family name. “Casement Inswing”, “Case outswing”. I’ve looked into “Elements.Subcomponents” and other posts on the forum, however i’m finding it hard to specifically target those nested family names.

I would essentially like to push this information into another (text) parameter value “Casement Inswing - Right Hinged”.

please note - “Shared” parameter value is not ticked to true, i’m not sure if this would make a difference.

Thank you for your help!

You’re going straight to the element’s name (type name) rather than getting the referenced element itself. If you can get the element from the reference then you’ll be able to get the type and family. You could also try getting the family name directly from the reference element.

You can always use Python to get this information via the API.
NestedFamilyTypeReference Members
This thread goes into how to do that:

Redesign your family.
This would be a lot simpler if you just placed the two nested families and gave each of them a visibility parameter. Then you could just access them from the host family with no API needed.
Probably a few other options as well but would need more detail on how the family is actually built.

Thanks Nick i will look into this much appreciated!