<?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 Insert Feature Class using arcpy in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/insert-feature-class-using-arcpy/m-p/258149#M8848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using arcpy with ArcGIS and simply want to add a shapefile to the Table of Contents.&amp;nbsp; The only tools I see that can do this are AddLayer and InsertLayer, which would require me to convert my shapefiles to layers.&amp;nbsp; Is there a way to add these shapefiles without doing it as a Layer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 15:06:56 GMT</pubDate>
    <dc:creator>CodySchank</dc:creator>
    <dc:date>2011-10-27T15:06:56Z</dc:date>
    <item>
      <title>Insert Feature Class using arcpy</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/insert-feature-class-using-arcpy/m-p/258149#M8848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using arcpy with ArcGIS and simply want to add a shapefile to the Table of Contents.&amp;nbsp; The only tools I see that can do this are AddLayer and InsertLayer, which would require me to convert my shapefiles to layers.&amp;nbsp; Is there a way to add these shapefiles without doing it as a Layer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/insert-feature-class-using-arcpy/m-p/258149#M8848</guid>
      <dc:creator>CodySchank</dc:creator>
      <dc:date>2011-10-27T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Feature Class using arcpy</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/insert-feature-class-using-arcpy/m-p/258150#M8849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use makefeaturelayer_management() and use the Layer object to add the layer object to the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#... other logic
tempLayer = "layer"
# Make a layer from the feature class
arcpy.MakeFeatureLayer_management("C:/data/mexico.gdb/cities",tempLayer)
addLayer = arcpy.Layer(tempLayer)
arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE")
arcpy.RefreshTOC()

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/insert-feature-class-using-arcpy/m-p/258150#M8849</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-11T12:42:45Z</dc:date>
    </item>
  </channel>
</rss>

