Hi all,
I just figured out that the script was not working because the file was getting corrupted for some reason while being upgraded. Sorry my bad, I guess I still need to learn a lot here both about Revit API and workflows development.
But I guess the real solution was the one from
Thank you again!
Andrea