I created a python tool on Pro with the following code, and manage to run it without any errors or warnings. However, I do not see any changes on my layer:
workspace = "C:\whatever.gdb" arcpy.env.workspace = workspace ref_lyrx = r"C:\SimbologyIwant.lyrx" aprx = arcpy.mp.ArcGISProject("CURRENT") map = aprx.listMaps('Map') layers = map.listLayers() layers2 = map.listLayers() arcpy.ApplySymbologyFromLayer_management(layers2, layers)
I also changed the last line to this, but no results
Is my code expected to work?