global coordinates

In the part model I have a sketch with straight line. Need to read start and end points in global (part) coordinate system. Functions swLine.GetEndPoint2() and swLine.GetStartPoint2() give me coordinates in the sketch which has swLine object.

It looks like trivial problem but I spend a lot of time looking for the way to read global coordinates and feel that need help with that.

Any suggestions?

SolidworksApi macros