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", "")