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
ListLayers (arcpy.mapping)
ArcGIS Help 10.1
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))])
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
Thank you very much Dan
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.