Select to view content in your preferred language

Display layer ID in feature layer properties

672
5
01-30-2024 12:27 PM
Status: Already Offered
Labels (1)
Bud
by
Esteemed Contributor

It's my limited understanding that Contents layers have a layer ID that is accessible via ArcPy.

When developing Python tools, it would be helpful to be able to see the layer ID in the feature layer's Catalog properties window for debugging purposes. 

Related:

5 Comments
TanuHoque

@Bud 

did this Copy Path command not help you?

copy_layer_id.gif

Bud
by

@TanuHoque Yeah, I suppose that does the trick. Feel free to close.

TanuHoque
Status changed to: Already Offered

Already offered via Copy Path command from Map ribbon tab

Thanks @Bud for trying it out and confirming that it works for you.

AdamGaudet

I tried this (and want to do this) but I don't get an id. I get something like "CIMPATH=map/sdg_sign2.json". Help!

TanuHoque

@AdamGaudet 

 

CIMPATH=map/sdg_sign2.json is the unique identifier of your layer.