AnsweredAssumed Answered

pythonaddin button returns no value

Question asked by ibraheem99 on Nov 21, 2012
Latest reply on Nov 21, 2012 by ibraheem99
I want user interaction with screen and return pixel value upon click. For this, i am using pythonaddin for return value. Following is code which performs nothing while i click on it. It should return feature class which i can later use for subsequent processed. Any suggestions how to make it work?

class Val(object):     """Implementation for Pythonaddin_addin.genW (Button)"""     def __init__(self):         self.enabled = True         self.checked = False     def onClick(self):         geog = arcpy.GetParameterAsText(0)         ras = arcpy.PointToRaster_conversion(geog, "ID", "in_memory/ras", "MAXIMUM", "", 30)         pass