Trace Geometric Network won't execute in custom script tool

المشرف العام

Administrator
طاقم الإدارة
I'm tyring to make a python-script tool which uses the Trace Geometric Network tool (10.3). My script works in the Python window, but as a script-tool, it runs and NOTHING HAPPENS. Messages state: Executing..., Start time..., Running script..., Completed script... Succeeded at... It acts like the tool executed with no errors, but there's no action or output.

The Trace Geometric Network tool refuses to work inside a python-script tool. I tried playing with the parameters, data types in of parameter settings, and deleting and remaking the tool several times. I even tried using other geometric networks with the tool. Finally, I made a bare-bones script with only the trace tool to troubleshoot, and NOTHING. I get the same action as above.

Here's my bare-bones script:

geoNetwork = arcpy.GetParameterAsText(0) inflags = arcpy.GetParameterAsText(1) barriers = arcpy.GetParameterAsText(2) arcpy.TraceGeometricNetwork_management(geoNetwork, "Trace", inflags, "TRACE_DOWNSTREAM", barriers) Here's a screen shot of how I'm setting my parameters in the tool properties:



Please help me figure out how to get this to work as a script-tool. Thanks!



أكثر...
 
أعلى