x,y,z data from user created coordinate system

Greetings all !

I am looking for a way to get X,Y,Z data from a user created coordinate system into a drawing.  I have seem a few macros that can get the x,y,z from the world coordinate system but none that you can specify what coordinate system the numbers are generated from.

I frequently have pipes that are in "body" position and I need to extract XYZ data for tube bending.  I don't want to have to move the pipes to solid works 0,0,0 to get the data.

Any help is greatly appreciated!

SolidworksDrawings And Detailing