Hello,
I'm trying to write a code to save the layer file (.lyrx) for each layer present in my project in the same folder of the data source.
At the moment I can only one by one, with the following code:
import arcpy
arcpy.mp.ArcGISProject('CURRENT')
arcpy.management.SaveToLayerFile('layer','output_path', 'RELATIVE')
But I wold like to create a iteration with all layers in my project. It's important that each .lyrx will be saved in the data source path.
Someone can help please