ArcGIS Pro 3.2.1
If I understand correctly, a given layer in the Conents pane doesn't have a unique name in its properties.
For example, if I add two XY event layers to the map named SPECIES_RECORDS, then there isn't a unique name behind the scenes.
That causes problems when trying to reference a specific Contents layer using ArcPy. See: Refer to a specific Contents layer — even when there are layers with duplicate names.
Idea:
Could all layers in the Contents pane be automatically assigned a unique name property? I.e., in the Properties —> Source or General section, there would be a line called "Unique Name" and the values would be:
- SPECIES_RECORDS
- SPECIES_RECORDS:1
That would allow us to reference a specific Contents layer in Python tools and toolboxes, assuming that the new property is available to ArcPy.
This isn't my area of expertise, so let me know if I've misunderstood something.