<?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: Help with creating feature in Python, then having the feature show in both the Catalog (works) and the Table of Contents (does not work). in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-creating-feature-in-python-then-having/m-p/208551#M9265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The Copy Feature works and creates the feature in the Catalog.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When using Copy Features, nothing "creates the feature in the Catalog." &amp;nbsp; The output of Copy Features is created in a folder or geodatabase somewhere.&amp;nbsp; If the folder or geodatabase location has been added to an ArcGIS Pro project, you can see the new data in Catalog, but this is Pro viewing data that exists and not having something created for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add newly created data sets to a Pro project, you can use the following code to start experimenting:&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

aprx_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to ArcGIS Pro project file&lt;/SPAN&gt;
data_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to newly created data set to add to a map in Pro&lt;/SPAN&gt;

aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;aprx_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
map &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# this assume you want data added to first map&lt;/SPAN&gt;
map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;addDataFromPath&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;data_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:17:57 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2021-12-11T10:17:57Z</dc:date>
    <item>
      <title>Help with creating feature in Python, then having the feature show in both the Catalog (works) and the Table of Contents (does not work).</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-creating-feature-in-python-then-having/m-p/208550#M9264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Python to create a number of features (specifically using Copy Feature on a newly created set of joined tables) that will be available in both the Catalog and the Table of Contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;Using ArcGIS Pro 2.2.&lt;/LI&gt;&lt;LI&gt;All of the Python is run external to ArcGIS Pro.&lt;/LI&gt;&lt;LI&gt;The Copy Feature works and creates the feature in the Catalog. When opening the map in ArcGIS Pro the item is in the Catalog, but is not available in the Table of Contents.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically asking if there is a Python command / geoprocessing tool that will make a feature that exists in the Catalog also available in the Table of Contents without having to manually add it to the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-creating-feature-in-python-then-having/m-p/208550#M9264</guid>
      <dc:creator>CharlesSummerhill</dc:creator>
      <dc:date>2018-07-11T20:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating feature in Python, then having the feature show in both the Catalog (works) and the Table of Contents (does not work).</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-creating-feature-in-python-then-having/m-p/208551#M9265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The Copy Feature works and creates the feature in the Catalog.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When using Copy Features, nothing "creates the feature in the Catalog." &amp;nbsp; The output of Copy Features is created in a folder or geodatabase somewhere.&amp;nbsp; If the folder or geodatabase location has been added to an ArcGIS Pro project, you can see the new data in Catalog, but this is Pro viewing data that exists and not having something created for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add newly created data sets to a Pro project, you can use the following code to start experimenting:&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

aprx_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to ArcGIS Pro project file&lt;/SPAN&gt;
data_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to newly created data set to add to a map in Pro&lt;/SPAN&gt;

aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;aprx_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
map &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# this assume you want data added to first map&lt;/SPAN&gt;
map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;addDataFromPath&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;data_path&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-creating-feature-in-python-then-having/m-p/208551#M9265</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T10:17:57Z</dc:date>
    </item>
  </channel>
</rss>

