Hello,
I have a Pro project that uses Network Analyst to show 5-mile driving distances from the district's fire stations. I am using lines instead of polygons for the service area and I have several different service areas saved depending on which station I'm looking at. The fire station locations never change, but the roads in the area do change due to development/new subdivisions.
Normally I just open the map in Pro and press the "Run" button on the service area to have it update the drive distances. No parameters are changing, just the roads in the network may have a few additional roads, and it's overwriting the existing feature classes in the service area's feature dataset in the database. No problem there.
I'd like to automate the "press Run" aspect in a stand-alone python script that I can schedule to run occasionally. I've gone through tons of documentation online about this but cannot seem to find anything similar to what I'm trying to do.
Has anybody done this and can share some pointers? Can just read in the parameters from my project's existing service area and then "solve"? Or must I create the service area again in the python? If I have to create it again, can I overwrite the existing service area so I don't end up with dozens feature datasets in the database?
If it matters, I'm doing this in ArcGIS Pro 3.5, not on AGOL.
Many thanks for your time,
Terri