POST
|
I figured out what the problem was. Nothing other than lack of attention, for which I apologize. I was moving the layer file around, and therefore the paths to the source data got broken -.- Just like when people are new to ArcGIS and they think map documents are everything they need. And that is the reason why it was only working within ArcMap. It was the only place where my OD Cost Matrix Layer actually had source data. I saved a new layer file and everything worked fine. Thank you guys for the help. I really appreciate it!
... View more
09-25-2017
10:15 AM
|
0
|
0
|
1153
|
POST
|
I am not creating a ODCM layer within the script. I am loading an existing one where I have predefined the parameters. Just like this:
... View more
09-14-2017
03:18 PM
|
0
|
3
|
1153
|
POST
|
My apologies. I meant to say that I upgraded from 10.5 to 10.5.1. And thanks, I looked into it and that doesn't really say anything that is related to my issue. I was hoping to see if some people are having the same issue or if it's just me in an attempt to isolate the problem.
... View more
09-14-2017
02:10 PM
|
0
|
1
|
1153
|
POST
|
I have a script tool that repeatedly solves an OD Cost Matrix problem using the method: arcpy.na.Solve(in_network_analysis_layer) A month ago or so I was using ArcGIS 10.5 and the script would run fine either as a stand-alone script or as a script tool within ArcMap/ArcCatalog. I recently upgraded to ArcGIS 10.5.1 and the script will only run within ArcMap if I reference an OD Cost Matrix Layer within the map document. It will not run otherwise. The error message I've been getting is that the layer I'm using as an input is not a network analyst layer. However, I have confirmed that it is indeed a NA layer by using the method isNetworkAnalystLayer. I have even used this property right above the line of code that solves the problem. I think this is a bug. I have never really used this forums and ESRI support, but I was not able to find a way of reporting it as a bug. Does anyone have any ideas?
... View more
09-14-2017
01:46 PM
|
0
|
9
|
1977
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|