<?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 Export the Utility network Rules along with RuleID: in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299188#M2563</link>
    <description>&lt;P&gt;If memory serves me, the delete tool doesn't verify the description of the rule being deleted, only the rule ID.&lt;/P&gt;&lt;P&gt;With that being said, it's good to have the full description so you can verify the rules being deleted before you run the script. In order to do that you will need to use the&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/describe.htm" target="_blank" rel="noopener"&gt; arcpy Describe method&lt;/A&gt; to read the utility network properties and look up the network source name, asset group name, and asset type names for each of the from/via/to elements. This can be achieved by looking at the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-asset-groups.htm" target="_blank" rel="noopener"&gt;asset groups&lt;/A&gt; and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-asset-types.htm" target="_blank" rel="noopener"&gt;asset types&lt;/A&gt; of all the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/edge-sources-utility-network.htm" target="_blank" rel="noopener"&gt;edge sources&lt;/A&gt; and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-sources-utility-network.htm" target="_blank" rel="noopener"&gt;junction soures&lt;/A&gt; for all of your &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/domain-networks.htm" target="_blank" rel="noopener"&gt;domain networks&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 14:43:09 GMT</pubDate>
    <dc:creator>RobertKrisher</dc:creator>
    <dc:date>2023-06-14T14:43:09Z</dc:date>
    <item>
      <title>How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1296773#M2531</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I'm trying to access the utility network rules with RuleID and some other details using Python but it is saying no definition of network rules in Arcpy.describe(UN).networkrule.&lt;/P&gt;&lt;P&gt;any idea to how to get full details of un rules&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;# Import required modules&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;import arcpy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;# Describe function on a Utility Network&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;UN = "C:\\MyProject\\databaseConn.sde\\mygdb.USER1.Naperville\\mygdb.USER1.ElectricNetwork"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;d = arcpy.Describe(UN)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;netRules = d.networkRules&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;for nr in netRules:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print("*** - Network Rules properties - ***")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"RuleID: {nr.ID}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"RuleType: {nr.Type}")&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromClassName: {nr.FromClassName}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromAssetGroupCode: {nr.FromAssetGroupCode}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromAssetGroup: {nr.FromAssetGroup}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromAssetTypeCode: {nr.FromAssetTypeCode}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromAssetType: {nr.FromAssetType}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"FromTerminal: {nr.FromTerminal}")&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToClassName: {nr.ToClassName}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToAssetGroupCode: {nr.ToAssetGroupCode}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToAssetGroup: {nr.ToAssetGroup}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToAssetTypeCode: {nr.ToAssetTypeCode}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToAssetType: {nr.ToAssetType}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;print(f"ToTerminal: {nr.ToTerminal}")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;Veer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 16:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1296773#M2531</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-07T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1297027#M2532</link>
      <description>&lt;P&gt;there is no object networkRules on the describe of the utility network.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 10:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1297027#M2532</guid>
      <dc:creator>JohnAlsup</dc:creator>
      <dc:date>2023-06-08T10:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1297060#M2534</link>
      <description>&lt;P&gt;In order to access the rules you need to query the rules table. If you're accessing a geodatabase (Mobile, SDE, or FGDB) directly it will have the a name similar to your&amp;nbsp;&lt;SPAN&gt;utility_network_description&lt;/SPAN&gt;&lt;SPAN&gt;.systemJunctionSource table, but instead of being called system junctions it will be called rules. If you're accessing the rules from a service it will always have layer id of 500003.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's a snippet I've used in the past:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;system_junction_description = un_description.systemJunctionSource&lt;BR /&gt;rules_table_base = system_junction_description.name.replace(system_junction_description.sourceType, "Rule")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1297060#M2534</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-06-08T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1298037#M2552</link>
      <description>&lt;P&gt;thank you John, Got it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1298037#M2552</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-12T13:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1298038#M2553</link>
      <description>&lt;P&gt;thank you Robert, Got it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1298038#M2553</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-12T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299139#M2562</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/138089" target="_self"&gt;&lt;SPAN class=""&gt;RobertKrisher&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from Rule table I can't get the Description like in pink below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;"72: From[ElectricDistributionLine.LowVoltage] From[ElectricDistributionDevice.CircuitBreaker.Load]&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Actually&lt;SPAN&gt;&amp;nbsp;I have around 22k rules to be deleted .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i need to delete them via script(python).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any help will be appreciated&amp;nbsp;here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.DeleteRule_un("Electric Network", "JUNCTION_EDGE_CONNECTIVITY",&lt;BR /&gt;"&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;72: From[ElectricDistributionLine.LowVoltage] From[ElectricDistributionDevice.CircuitBreaker.Load]&lt;/STRONG&gt;&lt;/FONT&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 13:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299139#M2562</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-14T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299188#M2563</link>
      <description>&lt;P&gt;If memory serves me, the delete tool doesn't verify the description of the rule being deleted, only the rule ID.&lt;/P&gt;&lt;P&gt;With that being said, it's good to have the full description so you can verify the rules being deleted before you run the script. In order to do that you will need to use the&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/describe.htm" target="_blank" rel="noopener"&gt; arcpy Describe method&lt;/A&gt; to read the utility network properties and look up the network source name, asset group name, and asset type names for each of the from/via/to elements. This can be achieved by looking at the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-asset-groups.htm" target="_blank" rel="noopener"&gt;asset groups&lt;/A&gt; and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-asset-types.htm" target="_blank" rel="noopener"&gt;asset types&lt;/A&gt; of all the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/edge-sources-utility-network.htm" target="_blank" rel="noopener"&gt;edge sources&lt;/A&gt; and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/junction-sources-utility-network.htm" target="_blank" rel="noopener"&gt;junction soures&lt;/A&gt; for all of your &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/domain-networks.htm" target="_blank" rel="noopener"&gt;domain networks&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299188#M2563</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-06-14T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299203#M2564</link>
      <description>&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;esri dociment is saying to&amp;nbsp;&lt;SPAN&gt;verify the description.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.0/tool-reference/utility-networks/delete-rule.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.0/tool-reference/utility-networks/delete-rule.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VeerSingh2_0-1686754192003.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73205iBF0E9894E1D73FC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VeerSingh2_0-1686754192003.png" alt="VeerSingh2_0-1686754192003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299203#M2564</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-14T14:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299237#M2565</link>
      <description>&lt;P&gt;The documentation says to include the rule id and the description, but as I said I don't think the tool currently verifies the description. Test it out and let me know!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299237#M2565</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2023-06-14T15:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export the Utility network Rules along with RuleID:</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299238#M2566</link>
      <description>&lt;P&gt;thank you Robert,&lt;/P&gt;&lt;P&gt;I'll check it out and let you know!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/how-to-export-the-utility-network-rules-along-with/m-p/1299238#M2566</guid>
      <dc:creator>VeerSingh2</dc:creator>
      <dc:date>2023-06-14T15:47:16Z</dc:date>
    </item>
  </channel>
</rss>

