POST
|
if i create the additional scripts instead of calling the model how can i call multi scripts into one script? Thank you Lela Harrington
... View more
07-07-2015
12:37 PM
|
0
|
2
|
736
|
POST
|
ill give it a try and let you know . thanks Thank you Lela Harrington
... View more
07-02-2015
01:01 PM
|
0
|
0
|
736
|
POST
|
problem is not solved at all yet. Thank you Lela Harrington
... View more
06-25-2015
11:21 AM
|
1
|
2
|
736
|
POST
|
Traceback (most recent call last): File "F:\GIS\Python_Scripts\GLE_BIS_Silverlight_Overwrite\Archive\Delete_Temp_Holding.py", line 23, in arcpy.DeleteTempHolding_GLE_BIS() File "F:\GIS\Python_Scripts\GLE_BIS_Silverlight_Overwrite\GLE_BIS.tbx", line 34, in DeleteTempHolding Thank you Lela Harrington
... View more
06-25-2015
10:56 AM
|
0
|
0
|
117
|
POST
|
anthony i am running into the same issues however i am not running this in a scheduler. i have 4 models that i am trying to get to run ( one at a time) thru python. basically run script 1 if script 1 successful run script 2 and so on. i have log lines in there to tell me at the end if this was successful. but i keet getting errors am i missing something? import arcpy, time, os, sys Date = time.strftime("%m-%d-%Y", time.localtime()) Time = time.strftime ("%I:%M:%S :p",time.localtime()) LogFile = file(r"F:\\GIS\\Python_Scripts\\Logs\\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w') output = open(r"F:\\GIS\\Python_Scripts\\Logs\\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w') arcpy.ImportToolbox("F:\\GIS\\Python_Scripts\\GLE_BIS_Silverlight_Overwrite\\GLE_BIS.tbx") # Local variables: output.write("Script Started At: " + str(Date) + " " + str(Time) + "." + "\n" + "Start Delete Process" +"\n") # Process: Delete Temp Holding Shapefiles arcpy.DeleteTempHolding_GLE_BIS() arcpy.ExecuteDeleteTempHolding_GLE_BIS() try: # Process: Delete Temp Holding Shapefiles if arcpy.ExecuteDeleteTempHolding_GLE_BIS(): output.write("Delete of Temporary files SUCCESS","\n") except: output.write("Delete of Temporary files FAIL","\n") output.write("END OF SCRIPT","\n") # reset date and time from when started lDate = time.strftime("%m-%d-%Y", time.localtime()) lTime = time.strftime("%I:%M:%S %p",time.localtime()) # write to log and close output.write(str("GLE to BIS Script Ended at " + str(lDate) + " " + str(lTime) + "." + "\n")) output.close() now = time.time() print "Script Complete"
... View more
06-25-2015
10:46 AM
|
0
|
2
|
1198
|
POST
|
i have 4 models that i created i am trying to run them thru python to get them to execute one at a time. i have two ways i want to try to do this. a. have python run the models ( to no success as of yet) b. export each model out as a script and have a master script that calls on 4 scripts to run one after the other until all 4 have ran in sequence. i am very new to this and would love any help. here is what i have so far. and here are my errors ERROR Traceback (most recent call last): File "F:\GIS\Python_Scripts\GLE_BIS_Silverlight_Overwrite\Archive\Delete_Temp_Holding.py", line 16, in <module> arcpy.ImportToolbox("F:/GIS/Python_Scripts/GLE_BIS_Silverlight_Overwrite/GLE_BIS.tbx") File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\__init__.py", line 90, in ImportToolbox return import_toolbox(input_file, module_name) File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\toolbox_code.py", line 441, in import_toolbox mymodule = generate_toolbox_module(toolbox, None, False, False, False, module_name, use_alt_alias) File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\toolbox_code.py", line 416, in generate_toolbox_module 'exec') File "F:\GIS\Python_Scripts\GLE_BIS_Silverlight_Overwrite\GLE_BIS.tbx", line 63 def SHP-BIS(): ^ SyntaxError: invalid syntax Script import arcpy, time, os, sys Date = time.strftime("%m-%d-%Y", time.localtime()) Time = time.strftime ("%I:%M:%S :p",time.localtime()) LogFile = file(r"F:\GIS\Python_Scripts\Logs\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w') output = open(r"F:\GIS\Python_Scripts\Logs\GLE to BIS PROJECTION AND TRANSFER_" + Date + ".txt", 'w') arcpy.ImportToolbox("F:/GIS/Python_Scripts/GLE_BIS_Silverlight_Overwrite/GLE_BIS.tbx") # Local variables: output.write("Script Started At: " + str(Date) + " " + str(Time) + "." + "\n" + "Start Delete Process" +"\n") # Process: Delete Temp Holding Shapefiles arcpy.DeleteTempHolding_GLE_BIS() try: # Process: Delete Temp Holding Shapefiles if arcpy.DeleteTempHolding_GLE_BIS(): output.write("Delete of Temporary files SUCCESS","\n") except: output.write("Delete of Temporary files FAIL","\n") output.write("END OF SCRIPT","\n") # reset date and time from when started lDate = time.strftime("%m-%d-%Y", time.localtime()) lTime = time.strftime("%I:%M:%S %p",time.localtime()) # write to log and close output.write(str("GLE to BIS Script Ended at " + str(lDate) + " " + str(lTime) + "." + "\n")) output.close() now = time.time() print "Script Complete"
... View more
06-25-2015
08:35 AM
|
0
|
12
|
6221
|
POST
|
Just in case anyone runs up against this http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340
... View more
06-16-2015
01:47 PM
|
1
|
0
|
343
|
POST
|
Does Arc GIS 10.1 have a toolbox or a python script that allows to start and stop service via arc catalog?
... View more
06-16-2015
01:23 PM
|
0
|
2
|
3391
|
POST
|
no we are in the process of upgrading our servers. we will probably not branch to the 10.3 or 10.4 for a couple more years we are about 2-3 years behind the curve on that. this is really a one time deal where i just want to get a list of broken data sources and bypass the broken table sources. the except in the script stops it from erroring but not getting the table sourcing stops the script from advancing as well. Thank you Lela Harrington
... View more
04-28-2015
08:06 AM
|
0
|
0
|
401
|
POST
|
i am in 10.1 we are just now getting to 10.2.2 Thank you Lela Harrington
... View more
04-28-2015
07:51 AM
|
0
|
2
|
401
|
POST
|
see where as mine is a huge deal. i am looking to either use an except system that just ignores them. that would be ok to. the broken sources actually stops my os.walk script when it hits a broken table. is there a way to say "if you run into a broken table ignore it and keep running" Thank you Lela Harrington
... View more
04-28-2015
07:41 AM
|
0
|
4
|
336
|
POST
|
Did you ever get closure on this. i have the same issue i am just listing broken data sources in a file location using an os.walk script with listbrokendatasources i have tried to source the table with list table views but hat is not working. this is the second script i have ever made and i am not to savvy on how to approach this.
... View more
04-28-2015
06:50 AM
|
0
|
9
|
336
|
Title | Kudos | Posted |
---|---|---|
1 | 06-25-2015 10:58 AM | |
1 | 06-25-2015 11:21 AM | |
1 | 08-18-2015 08:02 AM | |
1 | 06-16-2015 01:47 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|