Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import arcpy
  2.  
  3. # C:temptest.mxd is a blank map
  4. mxd = arcpy.mapping.MapDocument(r"C:temptest.mxd")
  5. df = arcpy.mapping.ListDataFrames(mxd)[0]
  6. arcpy.MakeFeatureLayer_management(r"C:temptest.mdbAnnoFC","annoFL")
  7. annoLayer = arcpy.mapping.Layer("annoFL")
  8. arcpy.mapping.AddLayer(df,annoLayer)
  9. mxd.save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement