Batch add parameters to families

I am trying to make a script to add parameters to all my families in revit:


But in the last node i get the following error:
familydocument.addparameter operation failed The referenced object is not valid, possibly because it has been deleted from the database or its creation was undone.
Anybody know why this happens?

1 Like

@jkolthof ,

check out this topic

KR
Andreas

1 Like

Thanks, Your scripts works good.

1 Like