Custom Node_GetAreasFromView

Hi All

I hope you are well.
I am trying to create a custom node called GetAreasFromView that collects areas, makes their boundaries, and transfers them to another Revit area plan. This works when I use it as a script, but for some reason, it does not as a custom node. Why would this be? Please see dyf. file and images attached. Thanks for your assistance.

GetAreasFromView.dyf (25.6 KB)

Anyone? Thanks!