AnsweredAssumed Answered

How can i improve the performance of my script

Question asked by GISGURU_001 on Sep 24, 2012
Latest reply on Sep 24, 2012 by GISGURU_001
I would like my script below to work faster, its takes like 5 mins to run;

layer_list = "Lines","Parcels","Access_Road_Graphics" for layer in layer_list:     arcpy.SelectLayerByLocation_management(layer, "COMPLETELY_WITHIN", "DataDrivenPage_Buffer", "", "NEW_SELECTION")     arcpy.SelectLayerByLocation_management("Points", "INTERSECT", "Parcels", "", "NEW_SELECTION")     arcpy.SelectLayerByLocation_management("Parcels_Graphics", "INTERSECT", "DataDrivenPage_Buffer", "", "NEW_SELECTION")     arcpy.SelectLayerByLocation_management("Lines_Split", "INTERSECT", "DataDrivenPage_Buffer", "", "NEW_SELECTION")     arcpy.SelectLayerByLocation_management("Access_Road_Graphics","HAVE_THEIR_CENTER_IN","DataDrivenPage_Buffer","","ADD_TO_SELECTION") exportLayer = "Points", "Lines", "Parcels", "Parcels_Graphics","Lines_Split","Access_Road_Graphics" for layer in exportLayer:     outFC = path + "/" + layer + "_New" + ".shp"     arcpy.Clip_analysis(layer,"DataDrivenPage_Buffer",outFC)


I want to to run faster;i believe i can script it in a better way that would be it run faster and improve its performance tremendously.

Outcomes