Click on a part in design tree and print drawing using macros?

I need to print stuff in order. I want to click on a part in design tree and print the drawing. For example, the one below.

Would anyone please give me some directions?

SolidworksApi macros