<?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: For the ArcMap 10.5, &amp;quot;load Objects&amp;quot; tool arcpy codes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/for-the-arcmap-10-5-quot-load-objects-quot-tool/m-p/1545310#M72989</link>
    <description>&lt;P&gt;I have automated scripts that load features into a geometric network.&amp;nbsp; I use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm" target="_blank" rel="noopener"&gt;Append (Data Management)—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&amp;nbsp;tool to load features.&amp;nbsp; You would likely need to open an edit session on the target database for this, as well.&amp;nbsp; Example below.&lt;/P&gt;&lt;P&gt;One thing to note - I found that the append method works well if loading less than 10,000 features.&amp;nbsp; Once you get over this, it would really slow down.&amp;nbsp; So, if you have a lot of features, you may want to break them up into subsets of 10,000 features and perform an append of each subset into the network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.Editor(target_db_conx_file) as edit:
            script.logger.info('Appending new meters to target feature class: ' + target_meters_fc)
            arcpy.management.Append(inputs=new_meters_fc, target=target_meters_fc, schema_type='NO_TEST')
            script.logger.info('Successfully appended new meters to target feature class: ' + target_meters_fc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 00:04:20 GMT</pubDate>
    <dc:creator>BruceBacia</dc:creator>
    <dc:date>2024-10-04T00:04:20Z</dc:date>
    <item>
      <title>For the ArcMap 10.5, "load Objects" tool arcpy codes</title>
      <link>https://community.esri.com/t5/python-questions/for-the-arcmap-10-5-quot-load-objects-quot-tool/m-p/1541249#M72908</link>
      <description>&lt;P&gt;I'm newbie in ArcPy. Is there any APIS the same as "load Objects"(in ArcMap customize mode can find it)?&lt;/P&gt;&lt;P&gt;I want to load features participated in geometric network.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 06:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/for-the-arcmap-10-5-quot-load-objects-quot-tool/m-p/1541249#M72908</guid>
      <dc:creator>baohuachu2</dc:creator>
      <dc:date>2024-09-23T06:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: For the ArcMap 10.5, "load Objects" tool arcpy codes</title>
      <link>https://community.esri.com/t5/python-questions/for-the-arcmap-10-5-quot-load-objects-quot-tool/m-p/1545310#M72989</link>
      <description>&lt;P&gt;I have automated scripts that load features into a geometric network.&amp;nbsp; I use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm" target="_blank" rel="noopener"&gt;Append (Data Management)—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&amp;nbsp;tool to load features.&amp;nbsp; You would likely need to open an edit session on the target database for this, as well.&amp;nbsp; Example below.&lt;/P&gt;&lt;P&gt;One thing to note - I found that the append method works well if loading less than 10,000 features.&amp;nbsp; Once you get over this, it would really slow down.&amp;nbsp; So, if you have a lot of features, you may want to break them up into subsets of 10,000 features and perform an append of each subset into the network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.Editor(target_db_conx_file) as edit:
            script.logger.info('Appending new meters to target feature class: ' + target_meters_fc)
            arcpy.management.Append(inputs=new_meters_fc, target=target_meters_fc, schema_type='NO_TEST')
            script.logger.info('Successfully appended new meters to target feature class: ' + target_meters_fc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 00:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/for-the-arcmap-10-5-quot-load-objects-quot-tool/m-p/1545310#M72989</guid>
      <dc:creator>BruceBacia</dc:creator>
      <dc:date>2024-10-04T00:04:20Z</dc:date>
    </item>
  </channel>
</rss>

