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"
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.