How to print the list of "table of contents (TOC)"

10774
10
10-14-2014 04:54 PM
YoshiTsuzuki
New Contributor II

Hello

I want to get a list of source files in the table of contents (TOC) with ArcGIS 10.2.

Source files are displayed in TOC with "List by source" mode. I want to get simply the list of source files. Moreover, source files of vector files are displayed in the TOC, but source files of raster files and tables (csv, xls, etc.) are not displayed in TOC, and only can found by checking the properties of the files. Please advise me if you know the methods to obtain the source file list of TOC.

Thanks in advance.

Yoshi

0 Kudos
10 Replies
RyanPaquette1
New Contributor III

@Greg Keith "Not sure why you're failing on lyr.dataSource, unless there's a typo somewhere. dataSource is a valid layer property. Is your shapefile in a group layer by chance?"

Yes... yes they are.

0 Kudos