Extracting all parameters from family files to excel

Hi all,

I’m looking to extract all of the parameteres (names) from all our families to an excel spreadsheet.
I’m using a python script (which I’m still learning) in the process but I can’t seem to resolve an error when dealing with more than one file.
Any help would be appreciated.


Thanks in advance

You need to make “PL” a list by declaring it above the for loop pl = and use pl.Append(iDoc.FamilyManager.Parameters). Right now your just getting the last one as an output.

OK tried that but am still getting the error as before and no data exporting to Excel.

@EddieSaez please post your dyn and rvt files (or a link to them)

You need to assign “pl” to the OUT variable, not the lowercase out that you have. (Note I had to use paths, but I modified the code to work with your script before posting.)

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import FamilyManager

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

docs = IN[0]
pl = []
for iDoc in docs:
pl.append(iDoc.FamilyManager.Parameters)

OUT = pl

One thing to keep in mind is that if you only feed this node 1 family, it is going to break.