Hi @BenDoty_LMN
@taurerm is right the node works in 2015 but fails in revit 2016 onwards thanks to @Einar_Raknes for pointing it out. Try the below Python script it should work for you. I tested it in Revit 2017 also it looks good.
@Konrad_K_Sobon can you please update. Thanks