AnsweredAssumed Answered

setting blank " "output feature class value for Python toolbox parameter

Question asked by dverbyla on Apr 1, 2015
Latest reply on Apr 3, 2015 by blake.terhune

I am new to Python toolboxes.  I have 2 parameters,  param0 is an input text file, param1 is an output feature class.

I want param1 disabled,

which works fine, once it is enabled, I want it blank,

but it is populated with "C:\Users\Dave\Documents\ArcGIS\Default.gdb\test_CreatePolygon"


    def updateParameters(self, parameters):

        """Modify the values and properties of parameters before internal

        validation is performed.  This method is called whenever a parameter

        has been changed."""

        if ( parameters[0].value):

            parameters[1].enabled = True

            parameters[1].value = ""