Hello Padmasiri,Thank seems strange. One suggestion, are you starting your list at 0? As in arcpy.GetParameterAsText(0) is the first text input and arcpy.GetParameterAsText(4) would be the fifth. Alternatively you can try using sys.argv[]. It would look something like this:import sys input1=sys.argv[1] #Note that the list starts at 1 because sys.argv[0] stores the location of the current script. input2=sys.argv[2] input3=sys.argv[3] input4=sys.argv[4] input5=sys.argv[5] #the fifth input to the tool. Same as arcpy.GetParameterAsText(4)Good luck!
import sys input1=sys.argv[1] #Note that the list starts at 1 because sys.argv[0] stores the location of the current script. input2=sys.argv[2] input3=sys.argv[3] input4=sys.argv[4] input5=sys.argv[5] #the fifth input to the tool. Same as arcpy.GetParameterAsText(4)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.