Tag Info

New answers tagged


In arcpy you need to use ImportToolbox: import arcpy arcpy.ImportToolbox(r"D:\Toolbox.tbx", "mytbx") arcpy.CalculateArea_mytbx(r"D:\data.gdb\data", "Area") or arcpy.mytbx.CalculateArea(r"D:\data.gdb\data", "Area")


If your input will be the same as your output then you don't need to add a parameter in your code; just create a parameter in your tool and set as you referenced. The obtained from property of the output should be set to your input parameter. This will create an output result to use add an input in model builder. Also, in your code, set your environment ...


This was a simple question that had found difficult to answer. I searched through the Esri documentation, which is usually very thorough, but just overlooked it. I wanted to share my answer here in a concise manner. In the Parameters dialog, set up a parameter, and set its direction to "output". Set the type to "Derivative" if applicable. In the script, ...


With Network Analyst, using the Location Allocation tool. Input your origins as facilities, and destinations as demand points. This should give you a result of associated points, which then can be used to create polygons using either Feature to Polygon or Construct Polygon, Help Site


You were so close at getting it right... As per one of my previous comments the exclamation marks need to be there so: "blocklow(inLF, inLT, inRF, inRT)" needs to change to: "blocklow(!{0}!, !{1}!, !{2}!, !{3}!)".format(inLF, inLT, inRF, inRT) This is python string manipulation where the values in the format statement get substituted into the string, ...

Top 50 recent answers are included