Selection of features

I want to create a macro which would wait for the user to select some features such as points or lines ,etc and use these features in further purpose of the macro

SolidworksApi macros