# Can be get list Nest family of Family is not yet place on model

**URL:** <https://forum.dynamobim.com/t/can-be-get-list-nest-family-of-family-is-not-yet-place-on-model/83545>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [November 28, 2022, 8:42am UTC](https://forum.dynamobim.com/t/can-be-get-list-nest-family-of-family-is-not-yet-place-on-model/83545 "2022-11-28T08:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manhgt214](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/manhgt214/32/153251_2.png) [@manhgt214](https://forum.dynamobim.com/u/manhgt214)\
**Post date:** [November 28, 2022, 8:42am UTC](https://forum.dynamobim.com/t/can-be-get-list-nest-family-of-family-is-not-yet-place-on-model/83545/1 "2022-11-28T08:42:02Z")

</div>

Hi all!

I try get all Nest family of Family in project.

If family has place on project (Family Instance) can be use menthod  
“GetSubComponentIds”, but family not is Instance seem like have’nt menthod to get it.

# I can get all family of category in project follow this:

def all\_elements\_of\_category(category):  
return FilteredElementCollector(doc).OfCategory(category).WhereElementIsNotElementType().ToElements()

#get Furniture:  
Furniture = all\_elements\_of\_category(BuiltInCategory.OST\_Furniture)

all\_Family = FilteredElementCollector(doc).OfClass(Family).ToElements()

# for i in all\_Family: print(i.Name)

Thank Advance!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cff902ea260ed0545152c0eaea0d6afbe7239883.png)

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [November 28, 2022, 12:23pm UTC](https://forum.dynamobim.com/t/can-be-get-list-nest-family-of-family-is-not-yet-place-on-model/83545/2 "2022-11-28T12:23:53Z")

</div>

Hi,

Perhaps these posts are useful to you? 🙂

> [@Is it possible to know if a family in a project is shared?](https://forum.dynamobim.com/t/is-it-possible-to-know-if-a-family-in-a-project-is-shared/51461/3):
>
> Try the following code to get only the families out that have shared parameter ticked #Created By Brendan Cassidy import clr # Import RevitAPI clr.AddReference("RevitAPI") import Autodesk from Autodesk.Revit.DB import \* output=[] #May need to change IN[0] to UnwrapElement(IN[0]) for a in IN[0]: for b in a.Family.Parameters: if b.Name == "Shared": if b.Value == 1: output.append(a) OUT = output

Also if you use the \</\> button you can paste your code formatted 🙂

Hope that helps,

Mark

---

<div class="post-metadata">

**Author:** ![jw.vanasselt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jw.vanasselt/32/133533_2.png) [@jw.vanasselt](https://forum.dynamobim.com/u/jw.vanasselt)\
**Post date:** [November 28, 2022, 12:45pm UTC](https://forum.dynamobim.com/t/can-be-get-list-nest-family-of-family-is-not-yet-place-on-model/83545/3 "2022-11-28T12:45:35Z")

</div>

@manhgt214 ,

This topic can help you too 🙂  
[ʳʰʸᵗʰᵐ|FamilyInstances.RetrieveNestedComponents vs GetSubComponent - Revit - Dynamo (dynamobim.com)](https://forum.dynamobim.com/t/familyinstances-retrievenestedcomponents-vs-getsubcomponent/82010/6)
