How to create and export grid points from surfaces

I am trying to find a way to create a series of grid points or a (point cloud) on any given surface. And export X Y and Z Coords to a .txt file as to upload the file into a program called DIFFSYS.

which requires these typ of files. And utimately program and diamond turn the surface. 

SolidworksSurfacing