Skip to main content
added 95 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

This is because arcpy.Rename_managementarcpy.Rename_management does not work on a map layer object - it works on objects on the disk.

Instead try:

layer.name = newName

layer.name is a read/write attribute of the arcpy.mapping.Layer class.

This is because arcpy.Rename_management does not work on a map layer object - it works on objects on the disk.

Instead try:

layer.name = newName

layer.name is a read/write attribute of the arcpy.mapping.Layer class.

This is because arcpy.Rename_management does not work on a map layer object - it works on objects on the disk.

Instead try:

layer.name = newName

layer.name is a read/write attribute of the arcpy.mapping.Layer class.

Source Link
om_henners
  • 15.7k
  • 2
  • 47
  • 86

This is because arcpy.Rename_management does not work on a map layer object - it works on objects on the disk.

Instead try:

layer.name = newName

layer.name is a read/write attribute of the arcpy.mapping.Layer class.