<?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: Adding feature class to existing feature dataset with other feature classes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165772#M12740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joe. That is 2 weeks that I can never get back!! &lt;/P&gt;&lt;P&gt;I thought the overwiteoutput feature relates to writing over features classes that have the same name, not features classes with different names. I guess because the feature dataset does exist so anything in it can be overwritten and or deleted even if the names are different.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2018 21:23:37 GMT</pubDate>
    <dc:creator>MascillineHama</dc:creator>
    <dc:date>2018-02-21T21:23:37Z</dc:date>
    <item>
      <title>Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165770#M12738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fairly new to python so forgive me if it sounds like i am repeating a question. I am trying to add a series of newly created feature classes to a feature dataset that exists and has other feature classes in it. it creates them and adds them to the dataset, however it deletes whatever other feature class(es) that are in that dataset. I have also created the feature class in the geodatabase within the same place that the feature dataset is located and used FeatureClassToFeatureClass conversion and it acts exactly the same way; deletes whatever is in the dataset and adds the newly created&amp;nbsp; feature classes. I thought that was weird as they have different names (schema is the same) from the ones contained in there. I even put in code (just in case there was same name issues) to rename the feature class if one with the same name exists. Maybe I am biting more than i can chew!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea here is that I have are several text files related to an area with different data related to that area. I want all the data for that area to stay in one dataset, so that user create the data and keep it in one area. This is so different area can all go into one geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest I could get to something that i wanted was this thread&lt;A href="https://community.esri.com/thread/84711"&gt;https://community.esri.com/thread/84711&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165770#M12738</guid>
      <dc:creator>MascillineHama</dc:creator>
      <dc:date>2018-02-21T20:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165771#M12739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting this line in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And see if that fixes it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165771#M12739</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-02-21T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165772#M12740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joe. That is 2 weeks that I can never get back!! &lt;/P&gt;&lt;P&gt;I thought the overwiteoutput feature relates to writing over features classes that have the same name, not features classes with different names. I guess because the feature dataset does exist so anything in it can be overwritten and or deleted even if the names are different.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 21:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165772#M12740</guid>
      <dc:creator>MascillineHama</dc:creator>
      <dc:date>2018-02-21T21:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165773#M12741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a wrinkle to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; if you run it off the IDE it works perfectly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; if you run this in arcmap/arccatalog tool and the flag is falses, it gives me standard datasets exists&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;Any thoughts on this going around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 21:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165773#M12741</guid>
      <dc:creator>MascillineHama</dc:creator>
      <dc:date>2018-02-21T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165774#M12742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what to say.&amp;nbsp; I just wrote this up to test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
in_fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Replicas\Replicas.gdb\MasterStreetNameFC'&lt;/SPAN&gt;
out_loc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Users\JBorgione\Desktop\MyGIS\AddressPointTesting\AddressTest.gdb\test'&lt;/SPAN&gt;
out_fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fc4'&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClassToFeatureClass_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_loc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In line 4 I specify the name of my target feature dataset.&amp;nbsp; I've run it in the IDE shell and just by double clicking the .py file and it has worked either way.&amp;nbsp; (out_fc gets changed before each run)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/397084_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165774#M12742</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-11T08:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding feature class to existing feature dataset with other feature classes</title>
      <link>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165775#M12743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I played around with the tool parameters a little and got it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Joe, much appreciated &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/adding-feature-class-to-existing-feature-dataset/m-p/165775#M12743</guid>
      <dc:creator>MascillineHama</dc:creator>
      <dc:date>2018-02-22T14:39:26Z</dc:date>
    </item>
  </channel>
</rss>

