Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- # Local variables:
- Links_Final = "Links_Final"
- condition = ""RR1"= 777 OR "RR2"=777 OR "RR3"=777 OR "RR4"=777"
- # Process: Select Layer By Attribute
- arcpy.SelectLayerByAttribute_management(Links_Final, "NEW_SELECTION", condition)
- value = int(arcpy.GetParameterAsText(0))
- condition = ""RR1"= value OR "RR2"= value OR "RR3"= value OR "RR4"= value"
- import arcpy
- # Local variables:
- Links_Final = "Links_Final"
- value = int(arcpy.GetParameterAsText(0))
- condition = """ "RR1" = {0} OR "RR2" = {0} OR "RR3" = {0} OR "RR4" = {0} """.format(value)
- # Process: Select Layer By Attribute
- arcpy.SelectLayerByAttribute_management(Links_Final, "NEW_SELECTION", condition)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement