Hi~~~
I'd like to take care of all three (L19,L18,L17) at once.
What should I do?
I have never studied Python professionally.
I'd appreciate it if you could write down an example.
arcpy.DeleteField_management('고정주기_L19', ["FRSTRGSDE", "LASTUPDDE","UPDTCD", "OPERTORNM", "LSTDSUSEDE", "POI_ID", "ASORTCD", "DSORTCD", "TELNO", "REFERDTANO", "LCACCRCY", "XCOORD", "YCOORD", "POI_CATE", "SYMID", "P_ID", "LV_S", "LV_E", "LOCATE", "FMYNM_BK", "X", "Y", "L_CODE","BND", "ANNO", "ROTATION"])
<Result '고정주기_L19'>
arcpy.DeleteField_management('고정주기_L18', ["FRSTRGSDE", "LASTUPDDE","UPDTCD", "OPERTORNM", "LSTDSUSEDE", "POI_ID", "ASORTCD", "DSORTCD", "TELNO", "REFERDTANO", "LCACCRCY", "XCOORD", "YCOORD", "POI_CATE", "SYMID", "P_ID", "LV_S", "LV_E", "LOCATE", "FMYNM_BK", "X", "Y", "L_CODE","BND", "ANNO", "ROTATION"])
<Result '고정주기_L18'>
arcpy.DeleteField_management('고정주기_L17', ["FRSTRGSDE", "LASTUPDDE","UPDTCD", "OPERTORNM", "LSTDSUSEDE", "POI_ID", "ASORTCD", "DSORTCD", "TELNO", "REFERDTANO", "LCACCRCY", "XCOORD", "YCOORD", "POI_CATE", "SYMID", "P_ID", "LV_S", "LV_E", "LOCATE", "FMYNM_BK", "X", "Y", "L_CODE","BND", "ANNO", "ROTATION"])
<Result '고정주기_L17'>
Solved! Go to Solution.
fields = ["FRSTRGSDE", "LASTUPDDE","UPDTCD", "OPERTORNM", "LSTDSUSEDE", "POI_ID",
"ASORTCD", "DSORTCD", "TELNO", "REFERDTANO", "LCACCRCY", "XCOORD", "YCOORD",
"POI_CATE", "SYMID", "P_ID", "LV_S", "LV_E", "LOCATE", "FMYNM_BK", "X", "Y",
"L_CODE","BND", "ANNO", "ROTATION"]
for fc in ['고정주기_L19', '고정주기_L18', '고정주기_L17']:
arcpy.DeleteField_management(fc, fields)
assuming the field names are the same and the path to your featureclasses is known
fields = ["FRSTRGSDE", "LASTUPDDE","UPDTCD", "OPERTORNM", "LSTDSUSEDE", "POI_ID",
"ASORTCD", "DSORTCD", "TELNO", "REFERDTANO", "LCACCRCY", "XCOORD", "YCOORD",
"POI_CATE", "SYMID", "P_ID", "LV_S", "LV_E", "LOCATE", "FMYNM_BK", "X", "Y",
"L_CODE","BND", "ANNO", "ROTATION"]
for fc in ['고정주기_L19', '고정주기_L18', '고정주기_L17']:
arcpy.DeleteField_management(fc, fields)
assuming the field names are the same and the path to your featureclasses is known
Thank you Soooooooooo much~~~~~~~~