Mabye have a look at this I used @erfajo package for this what works great!
https://forum.dynamobim.com/t/adding-multiple-family-types-paramaters-to-multiple-family-files/24749/10