Associate Multiple Families' Geometry to Parameter

I am trying to select all the geometry in a large number of Revit families and associate their Material parameter to each family’s “Cabinet Material” parameter. The script below works when I change the FamilyParameter.Associate node’s familyDocument input to FamilyDocument.Current and freeze the other nodes - however, it has no effect when I change the input to be a list of family documents at a directory.

Does anyone know why this isn’t working? I have attached the Dynamo file here as well.

Associate Family Parameter.dyn (28.4 KB)

Thanks,

Jonathan

Just want to give this a boost in case someone sees a solution. Would be a big help!