Angle between two centerlines is not changing as required

Hi, I have recorded a macro for creating two centerlines with an angle between them. I have used a userform to change the angle between the lines as per required. But the problem is that when i am increasing the angle more than 120° it starts giving output 180 +120°.Can anyone please help me come out of this issue? Thanks in advance!

Here I have attached the macro here.

SolidworksApi/macros