import arcpy from arcpy import env env.
def execute(self, parameters, messages): """The tool logic to perform once the tool is executed.""" arcpy.env.workspace = "C:\Temp"
class Tool(object): def __init__(self): """Define the tool's attributes.""" self.label = "MyTool" self.description = "Tool1" self.canRunInBackground = False arcpy.env.scratchGDB = r"C:\Temp\MyGDB.gdb"
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.