Hello,
I work in a folder containing about 250 .lyr
I wish i could list the layers contained in each of .lyr
I don't know if it's possible ?
Has anybody any idea
Thank you for your help
Thank you very much Dan
If you are interested in layers within layers as well, please see the recent post and script in my recent blog post. The script also allows for the production of a text file containing the folder's layer information.
Layer information in folders
import os
Path=r'C.......'
list=([m for m in os.listdir(Path) if m.endswith('.lyr') and os.path.isfile(os.path.join(Path, m))])
ListLayers (arcpy.mapping)
ArcGIS Help 10.1
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.