MapExportTools.py
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 is True:
            parameters[1].enabled = False
            mxd = arcpy.mapping.MapDocument("CURRENT")
            df = arcpy.mapping.ListDataFrames(mxd, "")[0]
            bkmkList = arcpy.mapping.ListBookmarks(mxd, "", df)
            parameters[3].filter.list = [bkmk.name for bkmk in bkmkList]
        if parameters[0].value is False:
            parameters[1].enabled = True
            if parameters[1].altered:
                mxd = arcpy.mapping.MapDocument(str(parameters[1].value))
                df = arcpy.mapping.ListDataFrames(mxd, "")[0]
                bkmkList = arcpy.mapping.ListBookmarks(mxd, "", df)
                parameters[3].filter.list = [bkmk.name for bkmk in bkmkList]
        if parameters[4].value is False:
            parameters[5].enabled = True
            parameters[5].value = 6.95
            parameters[6].enabled = True
            parameters[6].value = 8.16
        if parameters[4].value is True:
            parameters[5].enabled = False
            parameters[6].enabled = False
        return
Modify the values and properties of parameters before internal
        validation is performed.  This method is called whenever a parameter
        has been changed.
Modify the values and properties of parameters before internal
validation is performed.  This method is called whenever a parameter
has been changed.
Modify the values and properties of parameters before internal validation is performed . This method is called whenever a parameter has been changed .
def updateParameters(self, parameters):
        if parameters[0].value is True:
            parameters[1].enabled = False
            mxd = arcpy.mapping.MapDocument("CURRENT")
            df = arcpy.mapping.ListDataFrames(mxd, "")[0]
            bkmkList = arcpy.mapping.ListBookmarks(mxd, "", df)
            parameters[3].filter.list = [bkmk.name for bkmk in bkmkList]
        if parameters[0].value is False:
            parameters[1].enabled = True
            if parameters[1].altered:
                mxd = arcpy.mapping.MapDocument(str(parameters[1].value))
                df = arcpy.mapping.ListDataFrames(mxd, "")[0]
                bkmkList = arcpy.mapping.ListBookmarks(mxd, "", df)
                parameters[3].filter.list = [bkmk.name for bkmk in bkmkList]
        if parameters[4].value is False:
            parameters[5].enabled = True
            parameters[5].value = 6.95
            parameters[6].enabled = True
            parameters[6].value = 8.16
        if parameters[4].value is True:
            parameters[5].enabled = False
            parameters[6].enabled = False
        return
def updateParameters ( self , parameters ) : if parameters [ 0 ] . value is True : parameters [ 1 ] . enabled = False mxd = arcpy . mapping . MapDocument ( "CURRENT" ) df = arcpy . mapping . ListDataFrames ( mxd , "" ) [ 0 ] bkmkList = arcpy . mapping . ListBookmarks ( mxd , "" , df ) parameters [ 3 ] . filter . list = [ bkmk . name for bkmk in bkmkList ] if parameters [ 0 ] . value is False : parameters [ 1 ] . enabled = True if parameters [ 1 ] . altered : mxd = arcpy . mapping . MapDocument ( str ( parameters [ 1 ] . value ) ) df = arcpy . mapping . ListDataFrames ( mxd , "" ) [ 0 ] bkmkList = arcpy . mapping . ListBookmarks ( mxd , "" , df ) parameters [ 3 ] . filter . list = [ bkmk . name for bkmk in bkmkList ] if parameters [ 4 ] . value is False : parameters [ 5 ] . enabled = True parameters [ 5 ] . value = 6.95 parameters [ 6 ] . enabled = True parameters [ 6 ] . value = 8.16 if parameters [ 4 ] . value is True : parameters [ 5 ] . enabled = False parameters [ 6 ] . enabled = False return
Modify the values and properties of parameters before internal
validation is performed.
Modify the values and properties of parameters before internal validation is performed .
"""Modify the values and properties of parameters before internal
        validation is performed.  This method is called whenever a parameter
        has been changed."""
self
parameters