# Get families or nested families name in background files

**URL:** <https://forum.dynamobim.com/t/get-families-or-nested-families-name-in-background-files/101185>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 21, 2024, 2:38pm UTC](https://forum.dynamobim.com/t/get-families-or-nested-families-name-in-background-files/101185 "2024-05-21T14:38:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [May 21, 2024, 2:38pm UTC](https://forum.dynamobim.com/t/get-families-or-nested-families-name-in-background-files/101185/1 "2024-05-21T14:38:08Z")

</div>

Hi,

I am trying to test REVIT files (project or families) to detect families (or nested families) and update them.

I have in mind the same soution than proposed by SeanP in the post below.

> [@Testing Revit files for families](https://forum.dynamobim.com/t/testing-revit-files-for-families/45276):
>
> Hi, Is it possible to feed Dynamo a directory of Revit project or family files and test whether they contain a certain family? Maybe without opening the actual file?

Nevertheless I want to do it on open files in background (not in current project) and I don’t manage to get the families or nested families name to compare it woth my family database.

I try to use Rhythm Applications.OpennDoucmentFile + FamilyDocument.ByDocument + other different kind of nodes but I just mange to have Document or FamiliyDocument.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/8715d6e6b60b2ba5073ecf4e2f844955d3e33fa5.png)

Sombody could advise me on this one ?

Thanks !
