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")
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.