<?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 ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/642919#M17312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Behrouz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add the dataset name to the output path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&amp;nbsp; os.path + "\\"&amp;nbsp; + outWorkspace + "\\datasetname\\" +&amp;nbsp; shapefile.strip(".shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have Fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Mar 2011 06:15:12 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2011-03-06T06:15:12Z</dc:date>
    <item>
      <title>Importing shapefiles into Geodatabase DATASET with arcpy</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/642918#M17311</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;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:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/642918#M17311</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2011-03-06T01:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Importing shapefiles into Geodatabase DATASET with arcpy</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/642919#M17312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Behrouz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add the dataset name to the output path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&amp;nbsp; os.path + "\\"&amp;nbsp; + outWorkspace + "\\datasetname\\" +&amp;nbsp; shapefile.strip(".shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have Fun&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 06:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/importing-shapefiles-into-geodatabase-dataset-with/m-p/642919#M17312</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2011-03-06T06:15:12Z</dc:date>
    </item>
  </channel>
</rss>

