<?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: Copy Features (Data Management) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438568#M34438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001200000021000000"&gt;Feature Class to Geodatabase&lt;/A&gt;&lt;SPAN&gt; tool should do what you want. It is the equivalent of right clicking a geodatabase and selecting import multiple.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 21:40:06 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2012-11-05T21:40:06Z</dc:date>
    <item>
      <title>Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438565#M34435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the arcpy.CopyFeatures_management function in the Python window in ArcCatalog and I'm trying to copy over multiple features from SDE into a file geodatabase. Is is possible to copy over multiple features at once, or am I going to have to do it individually? I was successful copying over one feature, but when I try multiple features using the syntax arcpy.CopyFeature_management(["input 1", "input 2", etc],output) I don't get a valid result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't use Python very often, so any help you might have would be great. Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashlee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438565#M34435</guid>
      <dc:creator>AshleeMoore</dc:creator>
      <dc:date>2012-11-05T18:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438566#M34436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like you want to do a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000055000000"&gt;merge &lt;/A&gt;&lt;SPAN&gt;not a copy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438566#M34436</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-11-05T18:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438567#M34437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a list with a for loop to accomplish this.&amp;nbsp; For example you could try something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcpy.env.workspace = r'your\sde_gdb\here'
outgdb = r'new\gdb\location'
for fc in arcpy.ListFeatureClasses():&amp;nbsp; # this lists feature classes inside gdb
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcname = fc + '_copy'
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(fc, outgdb, fcname)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OR you can make a list or tuple containing the names of the feature classes to copy and use a for loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, os
from os import path as p

sde_gdb = r'your\sde_gdb\here'
outgdb = r'new\gdb\location'
fclist = ['Roads', 'Structures', 'Parcels', 'Hydrants']
for fc in fclist:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_path = p.join(sde_gdb,fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcname = fc + '_copy'
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(fc_path, outgdb, fcname)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438567#M34437</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T19:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438568#M34438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001200000021000000"&gt;Feature Class to Geodatabase&lt;/A&gt;&lt;SPAN&gt; tool should do what you want. It is the equivalent of right clicking a geodatabase and selecting import multiple.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 21:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438568#M34438</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2012-11-05T21:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438569#M34439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks everyone for all the feedback! I think I've got it figured out now. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashlee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438569#M34439</guid>
      <dc:creator>AshleeMoore</dc:creator>
      <dc:date>2012-11-08T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Features (Data Management)</title>
      <link>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438570#M34440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you please let others know your solution? It'll help other users visiting this thread. If your solution include one of the suggestions please mark that as answered. That'll also be helpful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 19:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-features-data-management/m-p/438570#M34440</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-11-08T19:22:26Z</dc:date>
    </item>
  </channel>
</rss>

