#... other logic tempLayer = "layer" # Make a layer from the feature class arcpy.MakeFeatureLayer_management("C:/data/mexico.gdb/cities",tempLayer) addLayer = arcpy.Layer(tempLayer) arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE") arcpy.RefreshTOC()
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.