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

764
6
Jump to solution
07-06-2017 12:04 AM
LeoDeng
Occasional Contributor II

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

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MelindaMorang
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
DanPatterson_Retired
MVP Emeritus

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

0 Kudos
LeoDeng
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.

0 Kudos
DanPatterson_Retired
MVP Emeritus

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

0 Kudos
VHolubec
Esri Regular 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

Vladimir
0 Kudos
MelindaMorang
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 

VHolubec
Esri Regular Contributor

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

Have a great day.

Vladimir
0 Kudos