<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Layer Use Index in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/layer-use-index/idi-p/1698765</link>
    <description>&lt;P&gt;In ArcCatalog provide a reporting tool that lists which maps the layers are used, include the source. This will help clean up databases especially with legacy data. The following code will list the layers but it should pull the data source as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Reference the current project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/P&gt;&lt;P&gt;# Loop through all maps in the project&lt;BR /&gt;for m in aprx.listMaps():&lt;BR /&gt;print(f"Map: {m.name}")&lt;BR /&gt;# Loop through all layers in the map&lt;BR /&gt;for lyr in m.listLayers():&lt;BR /&gt;# Only print valid layers (ignores group headers)&lt;BR /&gt;if lyr.isFeatureLayer or lyr.isRasterLayer:&lt;BR /&gt;print(f" - Layer: {lyr.name}")&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2026 15:23:26 GMT</pubDate>
    <dc:creator>mryan</dc:creator>
    <dc:date>2026-04-28T15:23:26Z</dc:date>
    <item>
      <title>Layer Use Index</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/layer-use-index/idi-p/1698765</link>
      <description>&lt;P&gt;In ArcCatalog provide a reporting tool that lists which maps the layers are used, include the source. This will help clean up databases especially with legacy data. The following code will list the layers but it should pull the data source as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Reference the current project&lt;BR /&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/P&gt;&lt;P&gt;# Loop through all maps in the project&lt;BR /&gt;for m in aprx.listMaps():&lt;BR /&gt;print(f"Map: {m.name}")&lt;BR /&gt;# Loop through all layers in the map&lt;BR /&gt;for lyr in m.listLayers():&lt;BR /&gt;# Only print valid layers (ignores group headers)&lt;BR /&gt;if lyr.isFeatureLayer or lyr.isRasterLayer:&lt;BR /&gt;print(f" - Layer: {lyr.name}")&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 15:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/layer-use-index/idi-p/1698765</guid>
      <dc:creator>mryan</dc:creator>
      <dc:date>2026-04-28T15:23:26Z</dc:date>
    </item>
  </channel>
</rss>

