arcpy.AddMessage(str(arcpy.mapping.ListLayers (mxd, "", df))) arcpy.AddMessage(addstru) arcpy.mapping.RemoveLayer (df, addstru) arcpy.AddMessage(str(arcpy.mapping.ListLayers (mxd, "", df)))
arcpy.AddMessage(str(arcpy.mapping.ListLayers (mxd, "", df))) arcpy.AddMessage(addstru) arcpy.mapping.RemoveLayer(df, arcpy.mapping.ListLayers(mxd, 'StruxPts_v04)[0]) arcpy.AddMessage(str(arcpy.mapping.ListLayers (mxd, "", df)))