How to get X&Y coordinates of all points

Hello there. I have a problem to make macro for getting X&Y coordinates of all points from sketch (see a picture), but on new coordinate system. Can anyone help me?

Thanks in advance

Danijel

SolidworksApi macros