How to find the angle of a pipe

Hey everyone,

Im a bit stuck, how does one find the angle of a pipe. Not the slope of the pipe but the xy angle in floor plan. The picture below shows what angle im looking forward. Im using the vector.anglewithvector node but the angle it gives me is not the angle in Revit. Any assistance will be greatly appreciated, thank you.

This might be what your are after. It will output an angle in between 0-180.


1 Like

wow awesome, thank you so much