Selecting a getting the previously selected data

Hello i am trying to select a few vertices which i will be using for convert entities . After this the points get deselected. Again i will have to traverse the vertices and select each of them. Is there a way by which i can keep the selected sketch points and select it easily for future use?????????

SolidworksApi macros