Modifying the formula (text) of a parameter (type) in families

Hello,
I would like to modify the value of a parameter in the formula box for several families in a Revit project.
Each family has a different value (loaded from Excel).
I’m using Python code found on the forum, but it seems it doesn’t consider a list as the input for the new parameter value.

It modifies the value, but always uses the first value in the list.

The result is:

found,
CVC BOU S Type 1_1 WALL Rect Plenum,
CVC BOU S Type 2_1 CEILING Rect Plenum

reload,
Family: CVC BOU S Type 1_1 WALL Rect Plenum,

Family: CVC BOU S Type 2_1 CEILING Rect Plenum

failed

locked

canAssign,
Object Type,
Object Type

cannotAssign

validFormula

notValidFormula

Thank you for your help.
Google Translate

Hello,
I would like to modify the value of a parameter in the formula box for several families in a Revit project.
Each family has a different value (loaded from Excel).
I’m using Python code found on the forum, but it seems it doesn’t consider a list as the input for the new parameter value.

It modifies the value, but always uses the first value in the list.

The result is:

found,
CVC BOU S Type 1_1 WALL Rect Plenum,
CVC BOU S Type 2_1 CEILING Rect Plenum

reload,
Family: CVC BOU S Type 1_1 WALL Rect Plenum,

Family: CVC BOU S Type 2_1 CEILING Rect Plenum

failed

locked

canAssign,
Object Type,
Object Type

cannotAssign

validFormula

notValidFormula

Thank you for your help.
Google Translate

Modifier parametre v2.dyn (83.2 KB)

image