AnsweredAssumed Answered

Trouble adding Network Analyst Layer to MXD with ArcPy

Question asked by ADongre1 on Dec 11, 2017
Latest reply on Dec 14, 2017 by ADongre1

I am having trouble adding a network analyst layer to an mxd using arcpy. I am not getting any errors, yet the layers don't show up after the script completes. I have tried several ways. The first is doing it all in memory.  I am creating a layer, say using MakeClosestFacilityLayer, getting the layer from the created object, then adding it via arcpy.mapping.addLayer. I have also exported the Layer to disk and then created a Layer using arcpy.mapping.Layer and then adding that to the mxd. No luck. Help would be appreciated.

Outcomes