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)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.