workgroup PDM references and whereused

I remember to see a code sample of how to list all ref and whereused files - Now I tried to find it but I couldn't

Anyone has any idea how to find it

Thank you

SolidworksApi macros