Skip to content

Commit f853f9d

Browse files
committed
ArcGIS Pro SDK 3.5 Batch Tracing Corehost
1 parent e285267 commit f853f9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3457
-4
lines changed

Configuration/ReadMe.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ This folder contains ArcGIS Pro Add-In Samples that fall under the 'Configuratio
1515

1616
* [ConfigWithMap (c#)](../../../tree/master/Configuration/ConfigWithMap)
1717
* [ConfigWithStartWizard (c#)](../../../tree/master/Configuration/ConfigWithStartWizard)
18-
* [GetRecentPortalProjects (c#)](../../../tree/master/Configuration/GetRecentPortalProjects)
1918
* [ProConfigWithAnimatedSplash (c#)](../../../tree/master/Configuration/ProConfigWithAnimatedSplash)
2019
* [ProStartPageConfig (c#)](../../../tree/master/Configuration/ProStartPageConfig)
2120

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ Below is the list of 311 ArcGIS Pro samples that are included in this repository
119119

120120
* [ConfigWithMap (c#)](../../tree/master/Configuration/ConfigWithMap)
121121
* [ConfigWithStartWizard (c#)](../../tree/master/Configuration/ConfigWithStartWizard)
122-
* [GetRecentPortalProjects (c#)](../../tree/master/Configuration/GetRecentPortalProjects)
123122
* [ProConfigWithAnimatedSplash (c#)](../../tree/master/Configuration/ProConfigWithAnimatedSplash)
124123
* [ProStartPageConfig (c#)](../../tree/master/Configuration/ProStartPageConfig)
125124

@@ -451,6 +450,7 @@ Below is the list of 311 ArcGIS Pro samples that are included in this repository
451450
#### Utility Network
452451

453452
* [AlternativeEnergizationAddIn (c#)](../../tree/master/UtilityNetwork/AlternativeEnergizationAddIn)
453+
* [BatchTracingCoreHost (c#)](../../tree/master/UtilityNetwork/BatchTracingCoreHost)
454454
* [CategoriesUsage (c#)](../../tree/master/UtilityNetwork/CategoriesUsage)
455455
* [ConfigurationPathsAddIn (c#)](../../tree/master/UtilityNetwork/ConfigurationPathsAddIn)
456456
* [ControllerPath (c#)](../../tree/master/UtilityNetwork/ControllerPath)

Samples.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomCategoriesExtraReport
651651
EndProject
652652
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteractWithWPF", "MVVM-XAML\InteractWithWPF\InteractWithWPF.csproj", "{D7D8994D-47DE-0DBA-26DE-208A54A89BA6}"
653653
EndProject
654+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatchTracingCoreHost", "UtilityNetwork\BatchTracingCoreHost\BatchTracingCoreHost.csproj", "{25CD887D-2410-9AEF-6566-E3FB9ABA5527}"
655+
EndProject
654656
Global
655657
GlobalSection(SolutionConfigurationPlatforms) = preSolution
656658
Debug|Any CPU = Debug|Any CPU
@@ -4495,6 +4497,18 @@ Global
44954497
{D7D8994D-47DE-0DBA-26DE-208A54A89BA6}.Release|x64.Build.0 = Release|Any CPU
44964498
{D7D8994D-47DE-0DBA-26DE-208A54A89BA6}.Release|x86.ActiveCfg = Release|Any CPU
44974499
{D7D8994D-47DE-0DBA-26DE-208A54A89BA6}.Release|x86.Build.0 = Release|Any CPU
4500+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4501+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|Any CPU.Build.0 = Debug|Any CPU
4502+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|x64.ActiveCfg = Debug|Any CPU
4503+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|x64.Build.0 = Debug|Any CPU
4504+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|x86.ActiveCfg = Debug|Any CPU
4505+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Debug|x86.Build.0 = Debug|Any CPU
4506+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|Any CPU.ActiveCfg = Release|Any CPU
4507+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|Any CPU.Build.0 = Release|Any CPU
4508+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|x64.ActiveCfg = Release|Any CPU
4509+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|x64.Build.0 = Release|Any CPU
4510+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|x86.ActiveCfg = Release|Any CPU
4511+
{25CD887D-2410-9AEF-6566-E3FB9ABA5527}.Release|x86.Build.0 = Release|Any CPU
44984512
EndGlobalSection
44994513
GlobalSection(SolutionProperties) = preSolution
45004514
HideSolutionNode = FALSE
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
## BatchTracingCoreHost
2+
3+
<!-- TODO: Write a brief abstract explaining this sample -->
4+
Standalone application that batch traces a utility network
5+
6+
7+
8+
<a href="https://pro.arcgis.com/en/pro-app/sdk/" target="_blank">View it live</a>
9+
10+
<!-- TODO: Fill this section below with metadata about this sample-->
11+
```
12+
Language: C#
13+
Subject: Console
14+
Contributor: ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
15+
Organization: Esri, https://www.esri.com
16+
Date: 05/06/2025
17+
ArcGIS Pro: 3.5
18+
Visual Studio: 2022
19+
.NET Target Framework: 4.6.1
20+
```
21+
22+
## Resources
23+
24+
[Community Sample Resources](https://github.com/Esri/arcgis-pro-sdk-community-samples#resources)
25+
26+
### Samples Data
27+
28+
* Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the [Releases](https://github.com/Esri/arcgis-pro-sdk-community-samples/releases) page.
29+
30+
## How to use the sample
31+
<!-- TODO: Explain how this sample can be used. To use images in this section, create the image file in your sample project's screenshots folder. Use relative url to link to this image using this syntax: ![My sample Image](FacePage/SampleImage.png) -->
32+
1. In Visual Studio click the Build menu. Then select Build Solution.
33+
2. Run the corresponding executable "BatchTracingCoreHost.exe" with a JSON file defining the configuration for the analysis you want to perform.
34+
35+
## Sample Data
36+
37+
All examples were configured using the [Utility Network Foundation](https://www.esri.com/arcgis-blog/products/utility-network/electric-gas/utility-network-foundations/) data models from the ArcGIS Solutions team at the time the tools were developed. You will likely need to make adjustments to these files based on your own schema and data requirements.
38+
39+
This repository includes several examples you can use to get started:
40+
- [JSON Configuration files](./JSON%20Configurations): This directory contains a series of configuration files for different use cases
41+
- [Named Trace Configurations](./Trace%20Configurations): This directory contains the named trace configuration referenced in each JSON Configuration File
42+
43+
## Analysis Types
44+
Each JSON file defines the type of analysis to be performed, and depending on the type of analysis there are additional parameters that are required. The different types of analysis are:
45+
- [Trace](trace.md) - Identify all the features connected to specific devices in your network.
46+
- [Partition](partition.md) - Parition your network into unique zones that cover specific types of lines or devices.
47+
- [Infer Subnetworks](infer.md) - Identify potential subnetworks and controllers for a tier in your network.
48+
49+
---
50+
51+
# Output
52+
53+
## Aggregated Geometry (Point, Line, Polygon)
54+
55+
![Aggregated Geometry](Graphics/Aggregated%20Geometry.png "Aggregated geometry for the total drainage area for each outfall in a stormwater network.")
56+
57+
When configured, these tables will hold the aggregated geometry of the features returned by the trace. It will respect the Output Asset Type and Output Conditions of the trace configuration.
58+
59+
The corresponding table is cleared every time the tool is run, so if you configure multiple analysis each analysis should have its own table. Each trace has a single row containing all the geometries for that trace.
60+
61+
Fields
62+
- AnalysisName: Name of the analysis performed
63+
- TraceName: Name of the trace configuration that was executed
64+
65+
---
66+
67+
## Output Table
68+
69+
![Ouptut Table](Graphics/Output%20Table.png "The output table shows all the elements returned by the trace.")
70+
71+
When configured, this table will include the information of the features returned by the trace. It will respect the Output Asset Type and Output Conditions of the trace configuration.
72+
73+
The output table is cleared every time the tool is run, so if you configure multiple analysis each analysis should have its own table. Each trace can produce many rows in this table.
74+
75+
Fields
76+
- AnalysisName: Name of the analysis performed
77+
- TraceName: Unique identifier from the starting feature of the trace (Batch Trace and Parition network), sequence number of the trace (Infer Subnetwork)
78+
- SourceIdentifier: Unique identifier from the result feature (Infer Subnetwork only)
79+
- NetworkSourceID: ID of the network source for the result feature
80+
- NetworkSourceName: Name of the network source for the result feature
81+
- ElementObjectID: Object ID of the result feature
82+
- ElementGuid: Global ID of the result feature
83+
- AssetGroupCode: Asset group code of the result feature
84+
- AssetGroupName: Asset group name of the result feature
85+
- AssetTypeCode: Asset type code of the result feature
86+
- AssetTypeName: Asset type name of the result feature
87+
- TerminalID: Terminal ID of the result feature, if applicable
88+
- TerminalName: Terminal name of the result feature, if applicable
89+
90+
91+
<!-- End -->
92+
93+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://esri.github.io/arcgis-pro-sdk/images/ArcGISPro.png" alt="ArcGIS Pro SDK for Microsoft .NET Framework" height = "20" width = "20" align="top" >
94+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
95+
[Home](https://github.com/Esri/arcgis-pro-sdk/wiki) | <a href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference" target="_blank">API Reference</a> | [Requirements](https://github.com/Esri/arcgis-pro-sdk/wiki#requirements) | [Download](https://github.com/Esri/arcgis-pro-sdk/wiki#installing-arcgis-pro-sdk-for-net) | <a href="https://github.com/esri/arcgis-pro-sdk-community-samples" target="_blank">Samples</a>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net8.0-windows</TargetFramework>
4+
<OutputType>Exe</OutputType>
5+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
6+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
7+
<NoWarn>CA1416</NoWarn>
8+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<Reference Include="ArcGIS.Core">
12+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.Core.dll</HintPath>
13+
<CopyLocal>True</CopyLocal>
14+
<Private>True</Private>
15+
<SpecificVersion>False</SpecificVersion>
16+
</Reference>
17+
<Reference Include="ArcGIS.CoreHost">
18+
<HintPath>C:\Program Files\ArcGIS\Pro\bin\ArcGIS.CoreHost.dll</HintPath>
19+
<CopyLocal>True</CopyLocal>
20+
<Private>True</Private>
21+
<SpecificVersion>False</SpecificVersion>
22+
</Reference>
23+
</ItemGroup>
24+
</Project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35527.113 d17.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatchTracingCoreHost", "BatchTracingCoreHost.csproj", "{EA7CF4F5-904D-4F8D-AD9F-A40AB7750453}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{EA7CF4F5-904D-4F8D-AD9F-A40AB7750453}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{EA7CF4F5-904D-4F8D-AD9F-A40AB7750453}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{EA7CF4F5-904D-4F8D-AD9F-A40AB7750453}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{EA7CF4F5-904D-4F8D-AD9F-A40AB7750453}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

0 commit comments

Comments
 (0)