Vector normal to surface nort working

Hi,

i have a big problem. I have some points on the surface from which i need the rotation from north value (Anchor drillings). i made a script, but unfortunately its not working. I always get different values. I gave up. Any advise how I could get this value? Any suggestion of help is really appreciated.

i firstly added normal cad points from which i create cogo points, these are autoplaced on right elevation. the only problem is, that the rotation is not calculated properly, i think the node is wrong here.

what i need is the Rotation from or to north value inside my PSet.

Yes, probably the angle
For those objects where it doesn’t work, check if angle is somewhere in between 180-360 degress. I have noticed that it can cause problem.