<?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: How to perform Network Analyst and Spatial Analyst operations programmatically in ArcGIS Pro SDK? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669280#M100481</link>
    <description>&lt;P&gt;I was able to resolve this.&lt;/P&gt;&lt;P&gt;I confirmed that I can run Network Analyst Route analysis from an ArcGIS Pro add-in by calling the following geoprocessing tools from C#:&lt;/P&gt;&lt;P&gt;na.MakeRouteAnalysisLayer to create the route analysis layer&lt;/P&gt;&lt;P&gt;na.AddLocations to add input points to the 「ストップ」 (Stops) sublayer&lt;/P&gt;&lt;P&gt;na.Solve to perform the route calculation&lt;/P&gt;&lt;P&gt;I tested this in a loop using two different feature classes (stop1 and stop2), each containing two points.&lt;BR /&gt;For each iteration, I call na.AddLocations and then na.Solve, and I can then copy the resulting route feature from the 「ルート」 layer to my own output feature classes.&lt;/P&gt;&lt;P&gt;With this workflow, I can repeatedly perform route analysis from the ArcGIS Pro SDK without using ArcPy, so my original question is resolved.&lt;/P&gt;&lt;P&gt;Thank you to everyone who viewed the thread.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 02:17:40 GMT</pubDate>
    <dc:creator>rdc_hirohara</dc:creator>
    <dc:date>2025-12-01T02:17:40Z</dc:date>
    <item>
      <title>How to perform Network Analyst and Spatial Analyst operations programmatically in ArcGIS Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669119#M100446</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In ArcMap/ArcObjects, it was possible to perform Network Analyst operations programmatically using the&lt;BR /&gt;&lt;STRONG&gt;ESRI.ArcGIS.NetworkAnalyst&lt;/STRONG&gt; namespace.&lt;BR /&gt;For example, we could:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Add stops (facilities) dynamically&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Run a route solve&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Repeat this process many times in a loop&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Build custom analyses such as Huff models or network-based Voronoi diagrams&lt;BR /&gt;by directly interacting with the NAContext, INAClass, network dataset, and solver objects.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;Now, in &lt;STRONG&gt;ArcGIS Pro&lt;/STRONG&gt;, I am trying to migrate the same functionality, but:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;I cannot find any equivalent Network Analyst API (classes or methods) in the ArcGIS Pro SDK for .NET.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The Pro SDK documentation appears to expose only &lt;STRONG&gt;Geoprocessing (GP)&lt;/STRONG&gt;-based tools, and not the internal NA objects.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Spatial Analyst also seems to be available only through GP tools (arcpy.sa), not via API objects.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Is there any supported way in ArcGIS Pro SDK (or ArcPy) to programmatically perform Network Analyst operations&lt;/STRONG&gt;, such as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Dynamically adding stops/facilities&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Running route/service area solves repeatedly inside a loop&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Accessing the network dataset, edges, nodes, or solver context&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Implementing custom network-based analyses (e.g., Huff model, network Voronoi, weighted network Voronoi)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Or, is the only supported approach in ArcGIS Pro to use &lt;STRONG&gt;Geoprocessing tools (MakeServiceAreaLayer, Solve, OD Cost Matrix, etc.)&lt;/STRONG&gt;?&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Additional context:&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;I am migrating a large ArcObjects application that makes heavy use of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Network Analyst&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Spatial Analyst&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Custom iterative network analysis&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Facility → shortest path computations&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Real-time update of barriers and attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;so I want to understand the technical limitations of ArcGIS Pro SDK and the recommended architecture for replacing these workflows.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Thank you for any guidance from the Pro SDK / Network Analyst team.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669119#M100446</guid>
      <dc:creator>rdc_hirohara</dc:creator>
      <dc:date>2025-11-28T06:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Network Analyst and Spatial Analyst operations programmatically in ArcGIS Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669228#M100479</link>
      <description>&lt;P&gt;I found that it might be possible to accomplish what I need by using the following geoprocessing tools:&lt;/P&gt;&lt;P&gt;Add Locations&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/network-analyst/add-locations.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/network-analyst/add-locations.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Solve&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/ja/pro-app/latest/tool-reference/network-analyst/solve.htm" target="_blank"&gt;https://pro.arcgis.com/ja/pro-app/latest/tool-reference/network-analyst/solve.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will try these tools to see if I can perform the Network Analyst operations from the ArcGIS Pro SDK.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2025 03:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669228#M100479</guid>
      <dc:creator>rdc_hirohara</dc:creator>
      <dc:date>2025-11-29T03:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform Network Analyst and Spatial Analyst operations programmatically in ArcGIS Pro SDK?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669280#M100481</link>
      <description>&lt;P&gt;I was able to resolve this.&lt;/P&gt;&lt;P&gt;I confirmed that I can run Network Analyst Route analysis from an ArcGIS Pro add-in by calling the following geoprocessing tools from C#:&lt;/P&gt;&lt;P&gt;na.MakeRouteAnalysisLayer to create the route analysis layer&lt;/P&gt;&lt;P&gt;na.AddLocations to add input points to the 「ストップ」 (Stops) sublayer&lt;/P&gt;&lt;P&gt;na.Solve to perform the route calculation&lt;/P&gt;&lt;P&gt;I tested this in a loop using two different feature classes (stop1 and stop2), each containing two points.&lt;BR /&gt;For each iteration, I call na.AddLocations and then na.Solve, and I can then copy the resulting route feature from the 「ルート」 layer to my own output feature classes.&lt;/P&gt;&lt;P&gt;With this workflow, I can repeatedly perform route analysis from the ArcGIS Pro SDK without using ArcPy, so my original question is resolved.&lt;/P&gt;&lt;P&gt;Thank you to everyone who viewed the thread.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 02:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-perform-network-analyst-and-spatial-analyst/m-p/1669280#M100481</guid>
      <dc:creator>rdc_hirohara</dc:creator>
      <dc:date>2025-12-01T02:17:40Z</dc:date>
    </item>
  </channel>
</rss>

