SHARE
TWEET

Untitled

a guest Jun 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print mapDoc
  2. mxd = arcpy.mapping.MapDocument(path_copy + mapDoc)
  3. for df in arcpy.mapping.ListDataFrames(mxd):
  4.     for lyr_o in arcpy.mapping.ListLayers(mxd,"",df):
  5.         for lyr_u in arcpy.mapping.ListLayers(updatedMxd,""):
  6.             if lyr_o.name == lyr_u.name:
  7.                 arcpy.mapping.UpdateLayer(df,lyr_o,lyr_u,False)
  8. mxd.save()
  9. pdf_name = mapDoc[:-4] + ".pdf"
  10. arcpy.mapping.ExportToPDF(mxd,pdf_name)
  11. print pdf_name
  12. del mxd
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top