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 "", line 1, in File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.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?
أكثر...
arcpy.MakeFeatureLayer_management("C:/Users/Gurminder/Documents/study/IWMI/TestingAutomation/SnowLine/SnowPersonal.mdb/Snow_lyr") Runtime error Traceback (most recent call last): File "", line 1, in File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.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?
أكثر...