# Looking for a way to automatically reload all families within a revit file from the families file path

**URL:** <https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [July 24, 2020, 7:54am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344 "2020-07-24T07:54:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkyduke](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sparkyduke](https://forum.dynamobim.com/u/sparkyduke)\
**Post date:** [July 24, 2020, 7:54am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344/1 "2020-07-24T07:54:51Z")

</div>

![Reloading families](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b48fd8aa932da76e912c591dea494d85f6ecdf7a.png) Hi, all I’m pretty new to dynamo but got a good idea on how it works, I’m looking for some help on extracting the file paths of all the families within my Revit family and reloading them in, overwriting their types if possible. I have a lot of families that get updated regularly and want the current file I’m working on to reimport all the updated family changes. I have managed to reload families by using the family name and adding a prefix as a file path and a suffix as a file extension. But this only works if my families are in one folder location which they are not.  
There are all over the place, can someone tell me how to extract or display the family file locations in the dynamo and if there’s a better way to reload them in. This would be great as I’m totally baffled.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 24, 2020, 10:03am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344/2 "2020-07-24T10:03:00Z")

</div>

I don’t think Revit keeps the original path, so likely your best bet is to either simplify the locations or build a new parameter into each family and store the path there.

---

<div class="post-metadata">

**Author:** ![sparkyduke](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sparkyduke](https://forum.dynamobim.com/u/sparkyduke)\
**Post date:** [October 15, 2021, 3:12am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344/3 "2021-10-15T03:12:17Z")

</div>

What about filtering a list of all your on-file families with their file paths with a list of families within a project?

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [October 15, 2021, 3:20am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344/4 "2021-10-15T03:20:58Z")

</div>

My suggested method that I use is to run a deep search across your family library, and find the matching file names in there which returns their path. Can be quite slow for large file counts but bypasses the issue with files not knowing their absolute path.

This sounds like what you suggested @sparkyduke. This can be done with a deep search enabled directory contents node, then retrieve just the file name from the returned paths. Combine an index.of and getitematindex to retrieve the relevant path (if any).

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 15, 2021, 3:29am UTC](https://forum.dynamobim.com/t/looking-for-a-way-to-automatically-reload-all-families-within-a-revit-file-from-the-families-file-path/53344/5 "2021-10-15T03:29:35Z")

</div>

This works until someone has to rename families to meet a BXP which requires additional classification. I think baking the path as a hidden parameter or into extensible storage for each RFA would be more ‘fool proof’, and once set up would scale quite nicely.

Potentially you could even add an event listener to ‘grab and store the path’ any time a family is loaded into the job…
