Getting type of elements in linked files [Python script]

Hi Everyone. I am trying to write a code that can allow me to fetch elements and their family type from all the revit files linked in a federated model (specifically all elements belonging to the structural framing category). I would like to have as output two list, one with the elements and one with their respective types, however the way I wrote the code outputs the element’s types not in the same order as the elements. Below is the code I wrote, thank you in advance!

as a side note: I am avoiding using external packages as I need to distribute this script to several people.

Don’t filter for each list separately. After you get the list of family instances, parse that list and return each element’s type.

1 Like