#Import system modules import arcpy from arcpy import env#Workspace env.workspace = "E:\User\MillageCode"#Variables input = "Sales_2006.shp" clip = "EagleHarborSales_temp.shp" output = "Output_temp5.shp"#Clip the Sales_2006 shapefile to the EagleHarborSales_temp shapefile arcpy.Clip_analysis(input, clip, output)#Info print arcpy.GetMessages()
#Import modulesimport arcpy, os, sysfrom arcpy import env#Workspacearcpy.env.workspace = arcpy.GetParameterAsText(0)#Variablesinput = arcpy.GetParameterAsText(1)clip = arcpy.GetParameterAsText(2)output = arcpy.GetParameterAsText(3)#Cliparcpy.Clip_analysis(input, clip, output)#Infoprint arcpy.GetMessages()
Executing: Clip E:\User\MillageCode\Sales_2006.shp E:\User\MillageCode\EagleHarborSales_temp.shp E:\User\MillageCode\Output_temp5.shp #Start Time: Tue Jul 16 07:35:46 2013Reading Features...Cracking Features...Assembling Features...Succeeded at Tue Jul 16 07:35:46 2013 (Elapsed Time: 0.00 seconds)
"E:\User\MillageCode"shouldn't work, you need \\ instead of \ or append r to the front of the path
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.