Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def onSelChange(self, selection):
  2. mxd = arcpy.mapping.MapDocument("CURRENT")
  3. theLayer = arcpy.mapping.ListLayers(mxd)[0]
  4. with arcpy.da.SearchCursor(theLayer, ["RR_UNIQ_ID"],""""RR_TYPE_NM" = '{0}'""".format(selection)) as sc:
  5. for row in sc:
  6. cmbFilteringCombo.items.append(row[0])
  7. cmbFilteringCombo.enabled=True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement