AnsweredAssumed Answered

in a pyt (python toolbox): How do I make a boolean parameter default False???

Question asked by MartinHvidberg on Sep 26, 2014
Latest reply on Sep 29, 2014 by curtvprice

In a .pyt I can define parameters as described in :

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

 

I have created a boolean parameter, the code snippet is as follow:

 

def getParameterInfo(self):
    """Define parameter definitions"""

 

    ... some other parameters ...

   

    # 3. Overwrite
    param3 = arcpy.Parameter(
        displayName="Overwrite Existing OBJ",
        name="Overwrite",
        datatype="GPBoolean",
        parameterType="Required",
        direction="Input")  

 

 

The parameter works, but it anoys me that it defaults to True, I would like it to default to False.

 

v.h. Martin

Outcomes