<?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>topic Re: layer.datasetName returns the layer name instead of the dataset name in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628413#M48939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code is returning the correct results.&amp;nbsp; Take a look at the 'datasetName' property explanation &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000008000000" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Returns the name of the layer's dataset the way it appears in the workspace, not in the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'name' property differs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Provides the ability to set or get the name of a layer the way it would appear in the ArcMap table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if you were to change the name of the layer in the table of contents, you can still find the original feature class/shapefile name by using the 'datasetName' property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 09:37:49 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2013-02-19T09:37:49Z</dc:date>
    <item>
      <title>layer.datasetName returns the layer name instead of the dataset name</title>
      <link>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628412#M48938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcEditor 10.0 sp5 (Evaluation version)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(See attached picture for code and results...)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When running some python code to get the dataset name for a layer in ArcMap, the layer.datasetName property returns the name of the layer instead of the dataset name.&amp;nbsp; I don't think the python code gets much simpler, am I just being simple-minded? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21921[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JMiller&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 03:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628412#M48938</guid>
      <dc:creator>JasonMiller</dc:creator>
      <dc:date>2013-02-19T03:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: layer.datasetName returns the layer name instead of the dataset name</title>
      <link>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628413#M48939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code is returning the correct results.&amp;nbsp; Take a look at the 'datasetName' property explanation &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s300000008000000" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Returns the name of the layer's dataset the way it appears in the workspace, not in the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'name' property differs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Provides the ability to set or get the name of a layer the way it would appear in the ArcMap table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if you were to change the name of the layer in the table of contents, you can still find the original feature class/shapefile name by using the 'datasetName' property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 09:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628413#M48939</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-02-19T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: layer.datasetName returns the layer name instead of the dataset name</title>
      <link>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628414#M48940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So in this case the "Dataset Name" is actually referring to the "FeatureClass name", and not the "Feature Dataset" to which it belongs... Thanks ESRI for making that clear as mud... here's an idea, make a property called&amp;nbsp; layer.featureclassName instead...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response JSkinn3, I had read the info in the link you provided but still had in my mind that "Dataset" was referring to "Feature Dataset"...&amp;nbsp;&amp;nbsp; A better and more thorough explanation of the terms (as well as how to update the "Feature Dataset" name) can be found here... &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Updating_and_fixing_data_sources_with_arcpy_mapping/00s30000004p000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Updating_and_fixing_data_sources_with_arcpy_mapping/00s30000004p000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layer-datasetname-returns-the-layer-name-instead/m-p/628414#M48940</guid>
      <dc:creator>JasonMiller</dc:creator>
      <dc:date>2013-02-19T14:06:52Z</dc:date>
    </item>
  </channel>
</rss>

