How to generate an opened assembly file directory in string

hello guys

right now i'm creating an add in for SW2012 to count the time of a file opened or accessed using the created time and last saved

but i need a string consisting of the directories of the file opened in SW2012, especially an assembly file (.SLDASM)

could somebody tell me how to do it?

thanks a lot,

SolidworksApi macros