import arcpy import pythonaddins class ButtonClass(object): """Implementation for BCPAO_addin.button (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog(r'E:\User\Python\ArcGIS10.1_Scripts\BCPAO.tbx', 'ParcelSearch.py') class ButtonClass1(object): """Implementation for BCPAO_addin.button_1 (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog(r'E:\User\Python\ArcGIS10.1_Scripts\BCPAO.tbx', 'SectionSearch.py') class ButtonClass2(object): """Implementation for BCPAO_addin.button_2 (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog(r'E:\User\Python\ArcGIS10.1_Scripts\BCPAO.tbx', 'CalculateArea.py') class ButtonClass3(object): """Implementation for BCPAO_addin.button_3 (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog(r'E:\User\Python\ArcGIS10.1_Scripts\BCPAO.tbx', 'NameDate.py') class ButtonClass4(object): """Implementation for BCPAO_addin.button_4 (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): pythonaddins.GPToolDialog(r'E:\User\Python\ArcGIS10.1_Scripts\BCPAO.tbx', 'TRSearch.py')
I had a similar problem where my GP Tool Name in the properties didnt match my call. GP Tool has a name and label in the properties and I was calling the label because that what showed in Catalog within the toolbar.