To help you out here in regards to before, I’m also playing with opening/editing/loading families currently. I seem to have managed to get the process to work but am still testing it. This script should open all doors in a project, add a parameter to them, then load them back to the project. Hope it helps give some ideas, it mostly uses Python but also has Clockwork/Crumple in it.
I know the forums generally don’t like background open processes when it comes to families, but it might be helpful. Can’t guarantee it’s 100% perfect, but seems to work for me.
This is just a prototype so I suggest learning more about Python/Revit API if you wish to take it further.