Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Creating new layer from selection in ArcPy? [closed]

$
0
0

arcpy.SelectLayerByAttribute_management() helps in selection but I am unable to create a new layer from the selection arcpy.MakeFeatureLayer_management() for generating new layer file but it gives an error:

arcpy.MakeFeatureLayer_management("C:/Users/Gurminder/Documents/study/IWMI/TestingAutomation/SnowLine/SnowPersonal.mdb/Snow_lyr")
Runtime error  Traceback (most recent call last):   File "<string>", line 1, in <module>   File "c:program files (x86)arcgisdesktop10.1arcpyarcpymanagement.py", line 5774, in MakeFeatureLayer     raise e ExecuteError: ERROR 000732: Input Features: Dataset C:/Users/Gurminder/Documents/study/IWMI/TestingAutomation/SnowLine/SnowPersonal.mdb/Snow_lyr does not exist or is not supported ERROR 000735: Output Layer: Value is required

How do i create a new layer so that i can copy the selection in the newly created layer, I have used Personal geodatabase

Is there any alternate way to do the same?


Viewing all articles
Browse latest Browse all 767

Trending Articles