Okay, let me explain.
I start from the project level. So:
--> doc is the project,
--> I loop through all the project's families matching my criteria,
--> for each family matching my criteria I do:
Document famDoc = doc.EditFamily( family )
-->Then I can read stuff from the family, close it and move on to next family (within the project)