Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import arcpy
  2. ... mxd = arcpy.mapping.MapDocument("CURRENT")
  3. ... for lyr in arcpy.mapping.ListLayers(mxd, "TestFile_LineToPoints13_Prod"):
  4. ... if lyr.supports("LABELCLASSES"):
  5. ... for lblclass in lyr.labelClasses:
  6. ... lblclass.expression = " [OBJECTID]"
  7. ... if lblClass.showClassLabels:
  8. ... print " Class Name: " + lblClass.className
  9. ... print " Expression: " + lblClass.expression
  10. ... mxd.save()
  11. ... del mxd
  12. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement