<?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 Extract Dirty Areas layer from Utility Network and get Topology Network properties using ArcPy. in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139760#M1539</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to extract the Dirty Areas layer from a Utility Network, but I have not succeeded.&lt;/P&gt;&lt;P&gt;I am trying using the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Input_Features="c:\...gdbUtilityNetwork\Network".
Output_Folder="c:\output.shp"
arcpy.conversion.FeatureClassToShapefile(Input_Features, Output_Folder)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result I get an error message saying that the input file is not supported.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geopamplona_0-1643802951309.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32924i30846B80C469504F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1643802951309.png" alt="geopamplona_0-1643802951309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/es/pro-app/latest/tool-reference/conversion/feature-class-to-shapefile.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/es/pro-app/latest/tool-reference/conversion/feature-class-to-shapefile.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the other hand, I try to get properties of topology network to know if there are dirty areas or not; for example the dirty area count.&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="geopamplona_0-1643802658400.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32923iF2AA51E77F33E675/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1643802658400.png" alt="geopamplona_0-1643802658400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using python 3.6 and ArcGIS Pro 2.6&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 12:06:04 GMT</pubDate>
    <dc:creator>geopamplona</dc:creator>
    <dc:date>2022-02-02T12:06:04Z</dc:date>
    <item>
      <title>Extract Dirty Areas layer from Utility Network and get Topology Network properties using ArcPy.</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139760#M1539</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to extract the Dirty Areas layer from a Utility Network, but I have not succeeded.&lt;/P&gt;&lt;P&gt;I am trying using the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Input_Features="c:\...gdbUtilityNetwork\Network".
Output_Folder="c:\output.shp"
arcpy.conversion.FeatureClassToShapefile(Input_Features, Output_Folder)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result I get an error message saying that the input file is not supported.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geopamplona_0-1643802951309.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32924i30846B80C469504F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1643802951309.png" alt="geopamplona_0-1643802951309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/es/pro-app/latest/tool-reference/conversion/feature-class-to-shapefile.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/es/pro-app/latest/tool-reference/conversion/feature-class-to-shapefile.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the other hand, I try to get properties of topology network to know if there are dirty areas or not; for example the dirty area count.&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="geopamplona_0-1643802658400.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32923iF2AA51E77F33E675/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1643802658400.png" alt="geopamplona_0-1643802658400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using python 3.6 and ArcGIS Pro 2.6&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 12:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139760#M1539</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2022-02-02T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Dirty Areas layer from Utility Network and get Topology Network properties using ArcPy.</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139777#M1540</link>
      <description>&lt;P&gt;You can access the Dirty Areas from the Utility Network Composite layer in the map.&amp;nbsp; Use the Dirty Area sublayer in your GP tool, or open the properties and look at the source to get the path.&amp;nbsp; If you need to access it outside of pro, you will need to use that path from the sublayer.&amp;nbsp; The Dirty Area is always named like UN_&amp;lt;DSID&amp;gt;_DirtyAreas.&amp;nbsp; The DSID is the dataset ID of the utility network.&amp;nbsp; You can find the DSID of the UN in a number of ways, but I just usually look for the terminal attribute domain.&amp;nbsp; It will be in the format of UNName_DSID_TerminalNames.&amp;nbsp; The number in the middle is the DSID.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeMillerGIS_0-1643805927790.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32929i8F9497E9A2A1A769/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeMillerGIS_0-1643805927790.png" alt="MikeMillerGIS_0-1643805927790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in a GP tool, use a path like&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\temp\1_ElectricUtilityNetworkFoundation\Database\UNAdmin@PostgreSQL@Electric_2022_01_27.sde\UN_11_DirtyAreas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 12:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139777#M1540</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2022-02-02T12:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Dirty Areas layer from Utility Network and get Topology Network properties using ArcPy.</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139850#M1541</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/188597"&gt;@MikeMillerGIS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer, it is very useful !&lt;/P&gt;&lt;P&gt;I have detected the DSID and managed to access the DirtyAreas layer:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ad = arcpy.da.Describe(r'C:\un_water.gdb\UN\Network')
Input_Features=f"C:\\un_water.gdb\\UN\\Network\\UN_{ad['DSID']}_DirtyAreas"
Output_Folder="C:\\results"
desc_da=arcpy.da.Describe(Input_Features)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The object desc_dirty_areas has the description of the layer, so it exists. I can also get the full path to the same object with the "catalogPath" property:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.conversion.FeatureClassToShapefile(desc_da['catalogPath'], Output_Folder)&lt;/LI-CODE&gt;&lt;P&gt;When I run this I get an error that the resource does not exist or is not supported.&lt;/P&gt;&lt;P&gt;I try to do an arcpy.GetCount on the dirty areas sublayer and get an error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geopamplona_0-1643814694503.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32940i1F2ED68BA0C0309B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="geopamplona_0-1643814694503.png" alt="geopamplona_0-1643814694503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not found documentation on how to deal with sublayers in arcpy; maybe I am missing some intermediate step to use the layer??&lt;BR /&gt;note that I'm using a FGDB not a corporate database; can it influence?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139850#M1541</guid>
      <dc:creator>geopamplona</dc:creator>
      <dc:date>2022-02-02T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Dirty Areas layer from Utility Network and get Topology Network properties using ArcPy.</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139861#M1542</link>
      <description>&lt;P&gt;Here is a little sample I put together that is working:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;gdb &lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;r'C:\temp\Communications_UtilityNetwork.gdb'&lt;BR /&gt;&lt;/SPAN&gt;d &lt;SPAN&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Describe&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;rf'&lt;/SPAN&gt;{gdb}&lt;SPAN&gt;\UtilityNetwork\Network'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;da_path &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;fr"&lt;/SPAN&gt;{gdb}&lt;SPAN&gt;\UN_&lt;/SPAN&gt;{d&lt;SPAN&gt;.&lt;/SPAN&gt;DSID}&lt;SPAN&gt;_DirtyAreas"&lt;BR /&gt;&lt;/SPAN&gt;Output_Folder&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"C:&lt;/SPAN&gt;\\&lt;SPAN&gt;results"&lt;BR /&gt;&lt;/SPAN&gt;da_d &lt;SPAN&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Describe&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;da_da &lt;SPAN&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;da&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Describe&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_d&lt;SPAN&gt;.&lt;/SPAN&gt;catalogPath&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_da&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'catalogPath'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;==&lt;/SPAN&gt;da_d&lt;SPAN&gt;.&lt;/SPAN&gt;catalogPath&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Exists&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetCount_management&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;arcpy&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FeatureClassToFeatureClass_conversion&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;da_path&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;r'c:\temp\temp.gdb'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'DAExport'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/extract-dirty-areas-layer-from-utility-network-and/m-p/1139861#M1542</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2022-02-02T15:30:28Z</dc:date>
    </item>
  </channel>
</rss>

