Duct Hanger placement Issue

Hello All,

I have created on script for the duct hanger. Script is running perfectly ok but support elevation is not correct everywhere. Please see the attached snap for your understanding.


Hanger “Support height” & “Fixing height” code block is not working properly. Please suggest how to fix this problem.