Family Type SetParameterByName

I think k your code may be wrong for setting the param. Why not just do it with Element.SetParameterByName node outside of the python script?

See here:
https://forum.dynamobim.com/t/setparameterbyname-to-wall-object-in-python/18497