AnsweredAssumed Answered

What is the correct path for the server ?

Question asked by progis99 on Feb 17, 2015
Latest reply on Feb 22, 2015 by progis99

I'm trying to write a script to add raster layer to my mxd from the server but i am not sure if the path to the server is correct ?


import arcpy, os arcpy.env.workspace=(r"S:\Las Cruces SSO\GIS_Master_Data\NAIP_2009\Dona Ana") mxd = arcpy.mapping.MapDocument(r"E:\ArcMap\Retrieve_NAIP.mxd") df = arcpy.mapping.ListDataFrames(mxd,"Layers") addlayer = arcpy.mapping.Layer('S:/Las Cruces SSO/GIS_Master_Data/NAIP_2009/Dona Ana') arcpy.mapping.AddLayer(df, addlayer,"AUTO_ARRANGE") mxd.saveACopy("E:\ArcMap\Retrieve_NAIP.mxd") del mxd, addlayer



look at the number 05 here is that the raster reside is on the server . The mxd file is on my hard drive.