import arcpy # Local variables: Strata_TSA_VRI_bk = "E:\\Projects\\FMG_WTP_Overlays.gdb\\Strata_TSA_VRI_bk" Strata_TSA_VRI_bk_Layer = "Strata_TSA_VRI_bk_Layer" Strata_TSA_VRI_bk_Layer__3_ = "Strata_TSA_VRI_bk_Layer" # Process: Make Feature Layer arcpy.MakeFeatureLayer_management(Strata_TSA_VRI_bk, Strata_TSA_VRI_bk_Layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SISH_SEQ_NBR SISH_SEQ_NBR VISIBLE NONE;SISH_STRATUM_NAME SISH_STRATUM_NAME VISIBLE NONE;CROWN_CLOSURE CROWN_CLOSURE VISIBLE NONE;VRI_LIVE_STEMS_PER_HA VRI_LIVE_STEMS_PER_HA VISIBLE NONE;VRI_DEAD_STEMS_PER_HA VRI_DEAD_STEMS_PER_HA VISIBLE NONE;SPECIES_CD_1 SPECIES_CD_1 VISIBLE NONE;SPECIES_PCT_1 SPECIES_PCT_1 VISIBLE NONE;SPECIES_CD_2 SPECIES_CD_2 VISIBLE NONE;SPECIES_PCT_2 SPECIES_PCT_2 VISIBLE NONE;SPECIES_CD_3 SPECIES_CD_3 VISIBLE NONE;SPECIES_PCT_3 SPECIES_PCT_3 VISIBLE NONE;SPECIES_CD_4 SPECIES_CD_4 VISIBLE NONE;SPECIES_PCT_4 SPECIES_PCT_4 VISIBLE NONE;SPECIES_CD_5 SPECIES_CD_5 VISIBLE NONE;SPECIES_PCT_5 SPECIES_PCT_5 VISIBLE NONE;SPECIES_CD_6 SPECIES_CD_6 VISIBLE NONE;SPECIES_PCT_6 SPECIES_PCT_6 VISIBLE NONE;PROJ_AGE_1 PROJ_AGE_1 VISIBLE NONE;PROJ_HEIGHT_1 PROJ_HEIGHT_1 VISIBLE NONE;SHAPE_Length SHAPE_Length VISIBLE NONE;SHAPE_Area SHAPE_Area VISIBLE NONE") # Process: Select Layer By Attribute arcpy.SelectLayerByAttribute_management(Strata_TSA_VRI_bk_Layer, "NEW_SELECTION", "\"SPECIES_CD_1\" = 'FDI'") # Process: Calculate Field arcpy.CalculateField_management(Strata_TSA_VRI_bk_Layer__3_, "SPECIES_CD_1", "\"FD\"", "VB", "")
Solved! Go to Solution.