Get angle of an element

Angle says all really…

I want to figure out the rotation of an element. Getting the location works fine but there doesn’t seem to be a node to get the angle.

1 Like

Hi @PauLtus
Have you tried FamilyInstance.FacingOrientation node?

2 Likes

@PauLtus You can also obtain normal vector from your geometry and use Vector.AngleWithVector.

1 Like

That works! Thank you!

It’s a good idea except I’m only getting an absolute angle from it while it matters a lot if it’s positive or negative.