Get filename of selected part in Solidworks drawing and copy to clipboard.

Is it possible to use a macro to get the filename of a selected part in a drawing and copy it to the clipboard?

This helps me a lot as oftentimes I need to lookup the drawings of certain parts in a drawing and I would hover my cursor over the part, remember the filename that appears, and then type it out somewhere else. Thanks a lot!!!

SolidworksApi/macros