<?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 ArcPy script to write same record in another feature layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/397638#M17645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add created records in one layer to another feature layer using ArcPy script. Is there any sample script to do so? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Nov 2020 01:45:23 GMT</pubDate>
    <dc:creator>ShahriarRahman</dc:creator>
    <dc:date>2020-11-01T01:45:23Z</dc:date>
    <item>
      <title>ArcPy script to write same record in another feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/397638#M17645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add created records in one layer to another feature layer using ArcPy script. Is there any sample script to do so? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2020 01:45:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/397638#M17645</guid>
      <dc:creator>ShahriarRahman</dc:creator>
      <dc:date>2020-11-01T01:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script to write same record in another feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/397639#M17646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Related... with unresolved&amp;nbsp;questions in the post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/261429"&gt;Copying exact record in another feature class while creating the record in a feature class using ArcPy.... &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Nov 2020 03:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/397639#M17646</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-01T03:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script to write same record in another feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/1001634#M34291</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I have come up with a solution to the task I wanted to accomplish, but the script is taking around 5 minutes to do perform the task(s). I need to minimise the time of processing, great to have your expert suggestion if I can reduce the processing time,&lt;/P&gt;&lt;P&gt;......................................................................&lt;/P&gt;&lt;P&gt;for m in aprx.listMaps():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for layer in aprx.activeMap.listLayers():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(layer.name[0:12]=="CGD.PARCELS_" and layer.getSelectionSet()):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.Append(layer, "BASEDATA", "NO_TEST")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management("BASEDATA","ARE_IDENTICAL_TO",layer)&lt;/P&gt;&lt;P&gt;........................................................................&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 02:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/1001634#M34291</guid>
      <dc:creator>ShahriarRahman</dc:creator>
      <dc:date>2020-11-16T02:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script to write same record in another feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/1001639#M34294</link>
      <description>&lt;P&gt;Lots of "ifs" there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would start with consolidating your data so you don't have to cycle through a number of layers that you know won't meet the conditions in the first place.&lt;/P&gt;&lt;P&gt;You don't indicate :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how big the files are,&lt;/LI&gt;&lt;LI&gt;where they are located (fgdb, SDE etc) and&lt;/LI&gt;&lt;LI&gt;how you are accessing them (local? network? remote?) and&lt;/LI&gt;&lt;LI&gt;your computer specs.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In some cases directing to "memory" workspace helps&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/basics/the-in-memory-workspace.htm" target="_self"&gt;Write geoprocessing output to memory&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is 5 minutes really too long?&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; &amp;nbsp;(ie. is this a 911 or similiar application?)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 03:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-script-to-write-same-record-in-another/m-p/1001639#M34294</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-16T03:00:07Z</dc:date>
    </item>
  </channel>
</rss>

