Setting Specific Coefficient for each duct fittings

Dear Experts,
I found script by Kulkul which adding specific coefficient value to duct fittings. Script changed the value at the revit file specific coeficient dialag box (see attached photo). However when runing duct pressure loss analyze it is not taking value from dialog box.

Please help.
Script:
Change-Coeff.-loss-fitting-duct.dyn (7.5 KB)

Help :roll_eyes:

Use a first Phyton Script twice. First Script should be changed so:

So at first you change Loss Method on “Not Specified”, then return to specific coefficient. Revit rewrites losses when method was changed, and doesn’t change it when method is the same.