POST
|
Thank you so much for your valuable time and suggestions sir.Bye.
... View more
03-14-2018
09:01 PM
|
0
|
0
|
201
|
POST
|
Thank you so much sir.I need one more help is there any way to get the values for each file of the multiple files in the second script. for example: if there are 3files: for first files it has to take the values and after that when the second file has been given as input it must take the other values. and same for the third file also. can u please help us with the logic or explain how to do it. regards in advance.
... View more
03-14-2018
08:15 AM
|
0
|
0
|
1127
|
POST
|
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)
... View more
03-14-2018
02:53 AM
|
0
|
2
|
1127
|
POST
|
Thank you so much for your help sir.I have a Graphical User Interface in the second script also.Here in your script it is executing a function,but i also need to a call the GUI in the second Script.Please help us.
... View more
03-13-2018
10:33 PM
|
0
|
4
|
1127
|
POST
|
Can u please elloborate or provide any example.Actually these scripts are the toolbox scripts for the creation of tools in arcmap
... View more
03-13-2018
07:50 PM
|
0
|
0
|
1127
|
POST
|
I created two script files one script file will take user input as a number and i have another script which has to be run those many times the number given by user.Please help me with this?I have tried to call that scrip by using subprocess.Popen method but i am not getting any output.It is getting terminated.
... View more
03-13-2018
10:24 AM
|
0
|
11
|
1681
|
POST
|
-3down votefavorite I have created two scripts in ArcToolbox in which first will get a string(ie number) as an input which says how many time the second script must be executed.I have done some coding for calling the second script but I struck that the gui is disappearing quickly.I need to take the input from the user those many times as the number he has entered. Please help me with this ?
... View more
03-13-2018
08:50 AM
|
0
|
0
|
327
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|