def updateParameters(self): """Modify the values and properties of parameters before internal validation is performed. This method is called whenever a parameter has been changed.""" desc = arcpy.Describe(self.params[0].value) domList = desc.Domains domList.sort() self.params[1].filter.list = domList return
if self.parameters[0].value:
def updateParameters(self): """Modify the values and properties of parameters before internal validation is performed. This method is called whenever a parameter has been changed.""" if self.params[0].altered: desc = arcpy.Describe(self.params[0].value) domList = desc.Domains domList.sort() self.params[1].filter.list = domList return
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.