Macro to capture points in 3d sketch and export to excel

is it possible to capture points in a 3d sketch and exporttheX,Y,Z coordinates to excel?SolidworksApi macros