<?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 ArcGIS Pro SDK for Tracing Utility network in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-for-tracing-utility-network/m-p/1035844#M38447</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I've created an add-in button for trace without set parameters by user but by using parameter from JSON file (like trace configuration from UN version 5) but to apply with a lower version of UN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is I can't find some parameter for trace in ProSDK (eg.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;condition barriers&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) Is there a way to set it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is an example of JSON (Convert JSON to JObject) and how I set parameters for tracing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "creator": "admin",
        "name": "Downstream at least A",
        "description": "",
        "traceType": 5,
        "configuration": {
            "includeContainers": false,
            "includeContent": false,
            "includeStructures": false,
            "includeBarriers": false,
            "validateConsistency": false,
            "validateLocatability": false,
            "includeIsolated": false,
            "ignoreBarriersAtStartingPoints": false,
            "includeUpToFirstSpatialContainer": false,
            "allowIndeterminateFlow": false,
            "domainNetworkName": "Electric",
            "tierName": "Electric Distribution",
            "targetTierName": "",
            "subnetworkName": "",
            "diagramTemplateName": "",
            "shortestPathNetworkAttributeName": "",
            "filterBitsetNetworkAttributeName": "",
            "traversabilityScope": "junctionsAndEdges",
            "conditionBarriers": [
                {
                    "name": "E:Device Status",
                    "type": "networkAttribute",
                    "operator": "equal",
                    "value": 1,
                    "combineUsingOr": true,
                    "isSpecificValue": true
                },
                {
                    "name": "Lifecycle Status",
                    "type": "networkAttribute",
                    "operator": "doesNotIncludeAny",
                    "value": 24,
                    "combineUsingOr": true,
                    "isSpecificValue": true
                },
                {
                    "name": "Category",
                    "type": "category",
                    "operator": "equal",
                    "value": "E:Ground",
                    "combineUsingOr": false,
                    "isSpecificValue": true
                }
            ],
            "functionBarriers": [],
            "arcadeExpressionBarrier": "",
            "filterBarriers": [
                {
                    "name": "E:Phases Normal",
                    "type": "networkAttribute",
                    "operator": "doesNotIncludeTheValues",
                    "value": 4,
                    "combineUsingOr": false,
                    "isSpecificValue": true
                }
            ],
            "filterFunctionBarriers": [],
            "filterScope": "junctionsAndEdges",
            "functions": [],
            "nearestNeighbor": {
                "count": -1,
                "costNetworkAttributeName": "",
                "nearestCategories": [],
                "nearestAssets": []
            },
            "outputFilters": [],
            "outputConditions": [],
            "propagators": []
        },
        "resultTypes": [],
        "creationDate": 1613987882000,
        "tags": [
            "test"
        ]
    }
]&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;Traversability tierTraceTraversability = mediumVoltageTier.TraceConfiguration.Traversability;
traceConfiguration.IncludeContainers = traceConf["configuration"]["includeContainers"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeContent = traceConf["configuration"]["includeContent"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeStructures = traceConf["configuration"]["includeStructures"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeBarriersWithResults = traceConf["configuration"]["includeBarriers"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.ValidateConsistency = traceConf["configuration"]["validateConsistency"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeIsolatedFeatures = traceConf["configuration"]["includeIsolated"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IgnoreBarriersAtStartingPoints = traceConf["configuration"]["ignoreBarriersAtStartingPoints"].ToObject&amp;lt;bool&amp;gt;();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 09:06:57 GMT</pubDate>
    <dc:creator>PitchYen</dc:creator>
    <dc:date>2021-03-12T09:06:57Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK for Tracing Utility network</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-for-tracing-utility-network/m-p/1035844#M38447</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've created an add-in button for trace without set parameters by user but by using parameter from JSON file (like trace configuration from UN version 5) but to apply with a lower version of UN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is I can't find some parameter for trace in ProSDK (eg.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;condition barriers&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;) Is there a way to set it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is an example of JSON (Convert JSON to JObject) and how I set parameters for tracing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    {
        "creator": "admin",
        "name": "Downstream at least A",
        "description": "",
        "traceType": 5,
        "configuration": {
            "includeContainers": false,
            "includeContent": false,
            "includeStructures": false,
            "includeBarriers": false,
            "validateConsistency": false,
            "validateLocatability": false,
            "includeIsolated": false,
            "ignoreBarriersAtStartingPoints": false,
            "includeUpToFirstSpatialContainer": false,
            "allowIndeterminateFlow": false,
            "domainNetworkName": "Electric",
            "tierName": "Electric Distribution",
            "targetTierName": "",
            "subnetworkName": "",
            "diagramTemplateName": "",
            "shortestPathNetworkAttributeName": "",
            "filterBitsetNetworkAttributeName": "",
            "traversabilityScope": "junctionsAndEdges",
            "conditionBarriers": [
                {
                    "name": "E:Device Status",
                    "type": "networkAttribute",
                    "operator": "equal",
                    "value": 1,
                    "combineUsingOr": true,
                    "isSpecificValue": true
                },
                {
                    "name": "Lifecycle Status",
                    "type": "networkAttribute",
                    "operator": "doesNotIncludeAny",
                    "value": 24,
                    "combineUsingOr": true,
                    "isSpecificValue": true
                },
                {
                    "name": "Category",
                    "type": "category",
                    "operator": "equal",
                    "value": "E:Ground",
                    "combineUsingOr": false,
                    "isSpecificValue": true
                }
            ],
            "functionBarriers": [],
            "arcadeExpressionBarrier": "",
            "filterBarriers": [
                {
                    "name": "E:Phases Normal",
                    "type": "networkAttribute",
                    "operator": "doesNotIncludeTheValues",
                    "value": 4,
                    "combineUsingOr": false,
                    "isSpecificValue": true
                }
            ],
            "filterFunctionBarriers": [],
            "filterScope": "junctionsAndEdges",
            "functions": [],
            "nearestNeighbor": {
                "count": -1,
                "costNetworkAttributeName": "",
                "nearestCategories": [],
                "nearestAssets": []
            },
            "outputFilters": [],
            "outputConditions": [],
            "propagators": []
        },
        "resultTypes": [],
        "creationDate": 1613987882000,
        "tags": [
            "test"
        ]
    }
]&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;Traversability tierTraceTraversability = mediumVoltageTier.TraceConfiguration.Traversability;
traceConfiguration.IncludeContainers = traceConf["configuration"]["includeContainers"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeContent = traceConf["configuration"]["includeContent"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeStructures = traceConf["configuration"]["includeStructures"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeBarriersWithResults = traceConf["configuration"]["includeBarriers"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.ValidateConsistency = traceConf["configuration"]["validateConsistency"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IncludeIsolatedFeatures = traceConf["configuration"]["includeIsolated"].ToObject&amp;lt;bool&amp;gt;();
traceConfiguration.IgnoreBarriersAtStartingPoints = traceConf["configuration"]["ignoreBarriersAtStartingPoints"].ToObject&amp;lt;bool&amp;gt;();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 09:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-for-tracing-utility-network/m-p/1035844#M38447</guid>
      <dc:creator>PitchYen</dc:creator>
      <dc:date>2021-03-12T09:06:57Z</dc:date>
    </item>
  </channel>
</rss>

