<?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: programmatically add feature class to feature dataset in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477844#M37406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look into the data transfer methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 11:08:15 GMT</pubDate>
    <dc:creator>Rvan_Rijen</dc:creator>
    <dc:date>2013-11-26T11:08:15Z</dc:date>
    <item>
      <title>programmatically add feature class to feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477840#M37402</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;We are using ArcGIS 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have several existing feature classes that we want to add to a feature dataset. Of course you can drag and drop the feature classes in the dataset, but our requirements dictate that all changes must be scripted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use a toolbox to move a feature class into a feature dataset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried arcpy.Rename_management(r'feature_class', r'feature_dataset\feature_class'). This does not give an error and returns the text &amp;lt;Result 'feature_dataset\feature_class'&amp;gt;, but nothing actually happens. Looks like a bug to me...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 08:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477840#M37402</guid>
      <dc:creator>Rvan_Rijen</dc:creator>
      <dc:date>2013-11-26T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: programmatically add feature class to feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477841#M37403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can import the feature class to the feature dataset as a new name, delete the original feature class, and then rename the feature class in the feature dataset.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\redlands.gdb"

fc = "Hospitals"
dataset = "test"

arcpy.FeatureClassToFeatureClass_conversion(fc, env.workspace + "\\" + dataset, fc + "_1")
arcpy.Delete_management(fc)
arcpy.Rename_management(fc + "_1", fc)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477841#M37403</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T21:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: programmatically add feature class to feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477842#M37404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Jake!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These feature classes are in an Oracle database and are &amp;gt;25GB in size. Creating a physical copy of the data and would take a lot of space and time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my understanding, a feature dataset is merely logical layer in the SDE administration. When we use ArcCatalog to move a feature class into a dataset, the actual Oracle tables are not affected. Only the SDE administration (e.g. gdb_items, gdb_itemrelationships) is changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to duplicate this ArcCatalog behaviour in Python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 09:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477842#M37404</guid>
      <dc:creator>Rvan_Rijen</dc:creator>
      <dc:date>2013-11-26T09:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: programmatically add feature class to feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477843#M37405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe this will be possible using Python.&amp;nbsp; You will most likely need to do this using one of the data transfer methods with ArcObjects:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000003rp000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000003rp000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 10:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477843#M37405</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-11-26T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: programmatically add feature class to feature dataset</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477844#M37406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look into the data transfer methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-add-feature-class-to-feature/m-p/477844#M37406</guid>
      <dc:creator>Rvan_Rijen</dc:creator>
      <dc:date>2013-11-26T11:08:15Z</dc:date>
    </item>
  </channel>
</rss>

