Get rotation or direction from selected object (polyline)

If it’s one line segment, use lines then you can use objectextension.getparameterbyname (from the toolkit) and input “Angle” and you can convert that to degrees using the Math.RadianToDegrees node.