How to know what type of geometry contents are inside a family?

How to know what type of geometry contents are inside a family with Dynamo?

For example, a Revit family with those contents:

    1. 2 CAD links with 23009 polylines, 10022 points, 233 surfaces, 214 solids, 23 meshes.
    1. 3 Detail item families with filled regions, annotative lines, text
    1. 2452 solids
    1. 12124 surfaces
    1. 12 model lines
    1. 6 revit nested families of other category that is not detail item, which have whatever geometry inside.

From the project environment directly, the lines, solids, and surfaces can be pulled with the Element.Curves, Element.Solids, and Element.Faces nodes respectively.

To get the nested data types (ie: links, nested families, etc.) I believe that you’ll need to open the family document and get all elements of a given category, effectively doing bulk queries on the data as needed.