Actually we have designed the user Interface using script in arcmap toolbox(.tbx).So I am sending the screen shots and the code which has to be called many times.
I
Input 1:It will take the number of parameters needed and this will be the count that the second image need to be called.
Input 2:It has to be executed, as per the input given in first UI.
Code for Second UI(ie second image)
# Import arcpy module
import arcpy
# Local variables:
filename = arcpy.GetParameterAsText(0)
Field = arcpy.GetParameterAsText(1)
Select = arcpy.GetParameterAsText(2)
max = arcpy.GetParameterAsText(3)
min = arcpy.GetParameterAsText(4)
expression = "getClass(!{0}!,{1},{2})".format(Select,min,max)
codeblock = """
def getClass(i, min, max):
a = 123
if (i>min and i<max):
return 1
return 0"""
# Process: Add Field
arcpy.AddField_management(filename, Field, "LONG", "", "", "", "", "NULLABLE", "NON_REQUIRED", "")
arcpy.CalculateField_management(filename, Field, expression, "PYTHON_9.3", codeblock)