Hope this one help you…
https://forum.dynamobim.com/t/element-getparametervaluebyname-length-problem/54220/6?u=_vijay