Get families or nested families name in background files

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.

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

Sombody could advise me on this one ?

Thanks !