def updateParameters(self, params):

        """
        If the input feature class is not point features, disable
        CSV export
        """
        if params[0].valueAsText:
            fc_type = arcpy.Describe(params[0].valueAsText).shapeType
            if fc_type in ['Point', 'MultiPoint']:
                params[7].enabled = 1
            else:
                params[7].enabled = 0

        return
Validate user input
dataset/ETHPy150Open CityOfPhiladelphia/arc-open/arc_open/convert.py/Convert.updateParameters