How to know the direction of the workpiece?

If I have a small hole in my workpiece, how do I determine the orientation of the hole relative to the center of the workpiece?

If you want to export the direction, you can use the center of the workpiece’s pose minus the hole’s pose.