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")
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.