Plane.XAxis not working in Dynamo 2.2

Hi, this node used to work in dynamo 1.3.4 in this script but had to make the move to 2.2 with Revit 2020 but this node is not working in this script now where it used to. Any help is appreciated thanks.

If it worked before it was a bug - you’re feeding a coordinate system into a node which is asking for a plane. Try a CoordinateSystem.XAxis instead.