ArcMapアプリケーションのPythonツールボックス(MyTool.pytなど)を作成しようとしています。
ヘルプテキストは、クラスself.description属性で定義されていることがわかります。
ただし、プログラムを実行し、パラメーターフィールドのいずれかをクリックすると、ヘルプ/説明テキストが空になります。各パラメーターの説明フィールドを提供できるようにしたいと思います。これはどのように達成されますか?
いくつかの回答の後、「アイテムの説明」の右クリックコンテキストメニューから、入力できるフィールドが多数あることがわかりました。これを行うための「Pythonの」方法はありますか?つまり、いくつかの属性を.pytファイルクラスに埋め込むだけですか?
たとえば、.pytツールボックス定義には、Toolboxクラスがあります。
import arcpy
class Toolbox(object):
    def __init__(self):
        """Define the toolbox (the name of the toolbox is the name of the
        .pyt file)."""
        self.label = "My Toolbox"
        self.alias = ""
        # List of tool classes associated with this toolbox
        self.tools = [MyNiceTool]
class MyNiceTool(object):
    def __init__(self):
        """Define the tool (tool name is the name of the class)."""
        self.label = "My Tool Class"
        self.description = """
A description that shows up in the help context side pane when the tool is launched.
        """
        self.canRunInBackground = True
    def rest_of_required_methods....self.description文字列から、ツールダイアログヘルプウィンドウにこのテキストが表示されます。ただし、私がしたいことは、各パラメーターのコードにも「説明」が埋め込まれているため、ツールが起動され、ユーザーがパラメーターフィールドをクリックすると、パラメーターの説明が表示されます。以下の返信で参照されている「アイテムの説明」メソッドを使用してこれを行う場合、各パラメーターの「構文」セクションの下の「ダイアログの説明」フィールドを編集します。
