<?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: Identify count of dirty areas in a Network Dataset in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1573956#M8920</link>
    <description>&lt;P&gt;Do you need the actual number of dirty areas?&amp;nbsp; Why?&lt;/P&gt;&lt;P&gt;The NetworkDataset class has a property,&amp;nbsp;isBuilt, which is set to False if the network has dirty areas and needs to be built.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 15:44:04 GMT</pubDate>
    <dc:creator>MelindaMorang</dc:creator>
    <dc:date>2025-01-09T15:44:04Z</dc:date>
    <item>
      <title>Identify count of dirty areas in a Network Dataset</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1419897#M8918</link>
      <description>&lt;P&gt;We are using a NAServer to do routing in our Webapp. One can display its Network Dataset via a Map Image Service. I wanted to ask if there is a possibility to query for the count of dirty areas, to know when to build the network again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either via the query-Api in the mapImage Service or via a python call on the ndsobject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.CheckOutExtension("network")&lt;/P&gt;&lt;P&gt;nds_path = r"C:\Users\connection.sde\dataset\dataset.ND"&lt;/P&gt;&lt;P&gt;# Initialize the NetworkDataset object&lt;BR /&gt;nds = arcpy.nax.NetworkDataset(nds_path)&lt;/P&gt;&lt;P&gt;des = arcpy.da.Describe(nds_path)&lt;BR /&gt;dirty=f"{nds_path}_{des['DSID']}_DirtyAreas"&lt;BR /&gt;arcpy.da.Describe(dirty) as it worked for people with a utitlity network, however, the last line just returns an error.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Line &lt;SPAN class=""&gt;1&lt;/SPAN&gt;:     arcpy.da.Describe(dirty)

&lt;SPAN class=""&gt;ValueError&lt;/SPAN&gt;: Object: Error in accessing describe&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any help would be very appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1419897#M8918</guid>
      <dc:creator>Baral_lec</dc:creator>
      <dc:date>2024-05-07T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Identify count of dirty areas in a Network Dataset</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1420325#M8919</link>
      <description>&lt;P&gt;Hey Dominik,&lt;/P&gt;&lt;P&gt;It's a very interesting query, but unfortunately, I don't think it is possible to get a total count of the number of dirty areas with Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping that there might be a method to convert the Dirty Areas into a Feature Class but any methods I have tried result in an incompatibility error.&lt;/P&gt;&lt;P&gt;It therefore might be a better idea to rely on editor tracking for your purposes. If you know the date that the network model was last built, and know the creation date of new features, or features that were updated then this would let you build a count of areas that would Dirty Areas.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;David&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>Wed, 08 May 2024 10:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1420325#M8919</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-05-08T10:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Identify count of dirty areas in a Network Dataset</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1573956#M8920</link>
      <description>&lt;P&gt;Do you need the actual number of dirty areas?&amp;nbsp; Why?&lt;/P&gt;&lt;P&gt;The NetworkDataset class has a property,&amp;nbsp;isBuilt, which is set to False if the network has dirty areas and needs to be built.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 15:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/identify-count-of-dirty-areas-in-a-network-dataset/m-p/1573956#M8920</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2025-01-09T15:44:04Z</dc:date>
    </item>
  </channel>
</rss>

