exporting dot coordinates

Hi. Is there a way, to make numbered dots on a sketch, and then export dots coordinates to .txt file, sorted by their numbers?

I would need this to be able to create spot welding programs in SW.

SolidworksApi macros