Dynamo script doesn't work same template in Revit2018 but in 2016 does worked

I have one template in revit and template version is 2016. I wrote example codes in below links and it did work. But although, template, all parameters and families are same, script doesn work in revit 2018.

Is there any idea why this is happening ?

Hi @gokhanozhim

Could you drop here your sample rvt 2018 file.