<?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 Arcpy.mapping.layer() help files in 10.0 and 10.1 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386510#M30489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it just me, or is the help entry for &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s30000001s000000/" rel="nofollow" target="_blank"&gt;arcpy.mapping.Layer()&lt;/A&gt;&lt;SPAN&gt; quite misleading?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile as a path and it works just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why does it imply that you can only reference a layer file (.lyr) as opposed to a map layer which could be one of any number of formats? Does anyone else agree that this entry could be clearer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 07:26:31 GMT</pubDate>
    <dc:creator>JT2</dc:creator>
    <dc:date>2013-01-11T07:26:31Z</dc:date>
    <item>
      <title>Arcpy.mapping.layer() help files in 10.0 and 10.1</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386510#M30489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it just me, or is the help entry for &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s30000001s000000/" rel="nofollow" target="_blank"&gt;arcpy.mapping.Layer()&lt;/A&gt;&lt;SPAN&gt; quite misleading?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives the distinct impression that you can only use this function on .lyr files, but actually you can pass a shapefile as a path and it works just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why does it imply that you can only reference a layer file (.lyr) as opposed to a map layer which could be one of any number of formats? Does anyone else agree that this entry could be clearer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386510#M30489</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2013-01-11T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mapping.layer() help files in 10.0 and 10.1</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386511#M30490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And come to think of it, it's ridiculous that ESRI used the name &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN&gt; for the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Layer/00s30000001s000000/"&gt;function&lt;/A&gt;&lt;SPAN&gt; when they also have a massive &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000008000000"&gt;class&lt;/A&gt;&lt;SPAN&gt; called &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN&gt;. Surely someone could have thought of a different name for the function to avoid this ambiguity???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386511#M30490</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2013-01-11T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mapping.layer() help files in 10.0 and 10.1</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386512#M30491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's handy, and consistent with the UI (IMHO) that you can pass a feature class to this function. Layer inputs to tools can take a layer file, layer in the map, or a dataset. I agree it should be documented!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you find anything in the help you don't like, you're welcome (and invited) to provide feedback using the button at the upper right of the page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know these comments gets read and used because when I provide my email address I get a personal email back from the doc team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that GetLayer may be a better name for the function. If you add it to ideas, I'll vote for it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386512#M30491</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-11T16:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mapping.layer() help files in 10.0 and 10.1</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386513#M30492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an unintended feature.&amp;nbsp; The Layer function was originally designed to work only with layer files.&amp;nbsp; We have been made aware of its other uses.&amp;nbsp; Because users are starting to use it we avoided preventing it from working but choose not to update the help because of unknown, untested consequences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also - The Layer function is the same name as the Layer Class, just like the MapDocument function has the same name as the MapDocument Class.&amp;nbsp; They were designed to work the same way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue is being evaluated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 00:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386513#M30492</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-01-14T00:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mapping.layer() help files in 10.0 and 10.1</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386514#M30493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your helpful replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's an aside, but I think that having a function called the same thing as a class is just plain confusing. Search the help files for Layer and you'll see two entries, if you're a beginner it's difficult to make sense of that. It's just not user friendly because you have two entires with the same name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, thanks for the info&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 12:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mapping-layer-help-files-in-10-0-and-10-1/m-p/386514#M30493</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2013-01-14T12:11:52Z</dc:date>
    </item>
  </channel>
</rss>

