folderPath = 'C:\temp' targetDataSource = 'C:\mapping\shapefile.shp' files = os.listdir(folderPath) for curFile in files: if curFile.endswith(".txt"): for lyr in arcpy.mapping.ListLayers(curFile): if lyr.dataSource == targetDataSource: print("Outdated layer found at " + lyr.lyr_file_path)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.