Get orientation (pair of angles) defining current view

How does one get the orientation defining current view as a pair of angles in units of degrees (e.g. 30, 30)?

SolidworksGeneral