Did you ever get this to work... I"m struggling with a similar issue. How ever I'm trying to add a data from a geodatabase... I keep getting the following error.Object: CreateObject Layer invalid data source
targetGroupLayer = [0] addLayer = arcpy.mapping.Layer(r"C:/gis/gis540/Project/firehydrants/add6.shp") arcpy.mapping.AddLayerToGroup(df, targetGroupLayer, addLayer, "BOTTOM")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.