How to get "Bulid Status" of a network dataset by python?

292
6
Jump to solution
07-06-2017 12:04 AM
Highlighted
Occasional Contributor II

The arcpy.Describe has an attribute isBuildable, but not the buid status. 

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

In ArcGIS Pro (starting with 2.4), you can access a network dataset's build status from standalone python using the NetworkDataset class's isBuilt property.  There's another property to get the network's build timestamp.

NetworkDataset—Network Analyst module | Documentation 

View solution in original post

6 Replies
Highlighted
MVP Esteemed Contributor

through arcpy it is mostly about getting properties

http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-network-analyst/closestfacilitysolverproper...

then that leaves you with the code snippets for the network analyst tool in arctoolbox...

http://desktop.arcgis.com/en/arcmap/latest/tools/network-analyst-toolbox/an-overview-of-the-network-...

if a function has been implemented as a tool, then the code snippet will help.  If it doesn't exist as a tool or through arcpy, it isn't available yet

Reply
0 Kudos
Highlighted
Occasional Contributor II

Thank you!

By the way, is it available to create a network dataset automatically using python?  I found that lots of Network Dataset properties are Read Only.

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

That is by design.  You would have to examine the arcpy and tool model for Pro to see if that offers any further options.

Reply
0 Kudos
Highlighted
Esri Contributor

Dear Leo Deng‌,

were you able to solve this issue - to find if network dataset was built or not with arcpy? 

Working on the same, and cannot find a way, how to do it.

Thank you. 

Regards,

Vladimir

Reply
0 Kudos
Highlighted
Esri Regular Contributor

In ArcGIS Pro (starting with 2.4), you can access a network dataset's build status from standalone python using the NetworkDataset class's isBuilt property.  There's another property to get the network's build timestamp.

NetworkDataset—Network Analyst module | Documentation 

View solution in original post

Highlighted
Esri Contributor

Dear Melinda Morang‌, works great. Thank you so much for prompt help!

Have a great day.

Reply
0 Kudos