Deep nesting

Hi, I am trying to sum the parameter values from nested and deeply nested components of a family. The first level of nesting works fine, but I can’t find a way to get to the deeply nested ones. The main problem is that Element.GetParameterValueByName can only look at types so I need to get to the types (FamilyInstance.GetType). Now this module fails when I try to get types from it.

I’d say try to control all the parameters you want to read from the parent family.
If it’s possible to read data from nested families I’d love to know how as well.

try map

The node works only when the nested families are shared as far as I know.
Other than that try cleaning the Empty sublists before going into Family Instance.GetType