<?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: Importing shapefiles into Geodatabase DATASET with arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/71208#M5858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know about a personal gdb but in a file gdb you can do something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = os.path.join(os.path.join(gdbpath, gdbname), dataset)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 11:46:49 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-03-07T11:46:49Z</dc:date>
    <item>
      <title>Importing shapefiles into Geodatabase DATASET with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/71207#M5857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to import some shapefiles into the DATASET of a personal Geodatabase using arcpy at ArcMap 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use this code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
fcList = arcpy.ListFeatureClasses()
 
# Execute CopyFeatures for each input shapefile
for shapefile in fcList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Determine the new output feature class path and name
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFeatureClass = os.path.join(outWorkspace, shapefile.strip(".shp"))
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(shapefile, outFeatureClass)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which adds shapefiles as *.lyr into the GEODATABASE successfully but I want to import(Add) them into a specific dataset( for example schools.accd) in the Geodatabase .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me an idea how I can do it in ArcMap 10 using an stand alone pythin script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 01:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/71207#M5857</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2011-03-06T01:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Importing shapefiles into Geodatabase DATASET with arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/71208#M5858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know about a personal gdb but in a file gdb you can do something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = os.path.join(os.path.join(gdbpath, gdbname), dataset)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/71208#M5858</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-03-07T11:46:49Z</dc:date>
    </item>
  </channel>
</rss>

