Getting XYZ coordinates from a surface.

Greetings.

I posted this in "General" last week but got no replies, so I'm reposting here hoping that someone has a solution.

Is there an easy way to generate XYZ coordinates from surfaces?  In my situation, the X and Y coordinates will always lie on a fixed, known grid, but the Z height varies across the surface.

In the attached example, the surface is named "Surface-Knit1", and the X and Y coordinates are the centers of each of the small circles in Sketch7 (bottom of the feature tree).

I've got many surfaces like "Surface-Knit1" but the grid like Sketch7 will always be the same.

Ideally, I'd like the origin to be based on Coordinate System1 (also at the bottom of the feature tree).

Thanks,

SolidworksApi macros