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?