import Comboboxes_addin # the default values param2.value = Comboboxes_addin.combobox_1.value
params = [param0, param1] activity = [" "] if params[0].value == "Forestry": activity = ["SP", "SPR", "MPR"] param0.filter.list = ["Forestry", "OW", "Urban Fire", "ED/PR"] param1.filter.list = activity return params def isLicensed(self): """Set whether tool is licensed to execute.""" return True 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 == "Forestry": activity = ["SP", "SPR", "MPR"] parameters[1].filter.list = activity return
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.