Setting parameters to multiple family types of the same family - not working

Hello, I’ve been trying to set parameters to muplitle typesof the same family. I’ve been using the Orchid addon, and here’s my script:

The error I get is “The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.”

I’m passing all-flatten values, as shown below:
//can’t post more, but everything is flatten:

This is just an example, but I wanted to simplify it as much as I can. The real database has 500+ .rfa files, some of them have multiple types, some just one. Any help please? @erfajo


Here are the values, all flatten

This approach is not working either:

Sorry for multipost, I can’t post more than one picture per post.

My guess: it will be faster and easier to load the families into an RVT and edit these values [and make any other bulk edits] in the project environment, then save out the family library when you are done.