Hi @bvs1982
I’ve got the same problem!
Try to replace a.ViewName=n
to a.Name=n
so it looks like this:
Now it works for me in 2020.2, but don’t know about 2019.
Found it here: SteamNodes Tool.CreateEmptySheet node ViewName Attribute Depricated