Try setting each type to current before setting params.
Looks like you are iterating over types but not doing anything with them:
for i in Types
doc.FamilyManager.CurrentType = i
for... # iterate and set param values
Try setting each type to current before setting params.
Looks like you are iterating over types but not doing anything with them:
for i in Types
doc.FamilyManager.CurrentType = i
for... # iterate and set param values