Where Used of a Folder in EPDM

Guys,

I am trying to create an add-in for EPDM that when you Right Mouse Button on a folder, I would like to create a Tree View of that folder.  In a sense, to display every file that does not have a where used in that folder, but also be able to expand to see the references of those files.

Does anyone have any starter code I can have?

Hope this makes sense.

SolidworksApi macros