Multi-input tool parameters, such as buffer distance and XY tolerance do not accept in-line variables for the numeric value and default the value to zero.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM050794
已提交
November 6, 2009
上次修改时间
October 11, 2024
适用范围
No Product Found
找到的版本
10.0 Beta
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
A workaround exists that involves creating a script tool that contains only the buffer. This will accept a numeric parameter and concatenate it with a hard-coded unit of measure to create the linear distance string expected by the tool:import sys, string, os, arcgisscriptinggp = arcgisscripting.create()gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")input1 = sys.argv[1]out = sys.argv[2]Long = sys.argv[3]gp.Buffer_analysis(input1, out, Long +" Miles", "FULL", "ROUND", "NONE", "")