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 ?