Is there any api to create save selection and get that back?

I want a API to create selection set (Save selection) and call back.

Is it possible with SWx API?

SolidworksApi macros