Click on a part in design tree and then get file name using macros

I want to extract a part file name from an assembly by clicking the part in the assembly tree

I have recorded a macro, but I am not sure how to get the extract file name from the macro. Please see the attachment

SolidworksApi macros