how to measure angle between two points

how to extract these angle from solidworks api using code plzzz help me

SolidworksApi macros