How do I get the datasource and file name within Navisworks or AutoCAD?

I know it can be done because AutoCAD PW integration does it.

Would be good if I could use the local path to the folder to retrieve the datasource. Is that possible?

Maybe it's some call to the ODMA?