Is there a script that can be used to automatically apply the symbology to a new layer from another layer in the same way as Import Symbology?
Thanks to all.
Robert..
You can use the Apply Symbology From Layer tool via Python. The help topic has sample code.
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/apply-symbology-from-layer.htm
Also, if you run the tool once by hand, you can copy the Python syntax from the geoprocessing history of the tool.
https://learn.arcgis.com/en/projects/run-geoprocessing-tools-with-python/#:~:text=export%20the%20code%20for%20that%20run%20from%20the%20History%20pane
You can take that code and modify it to be your own Python Script tool, see this tutorial:
https://learn.arcgis.com/en/projects/create-a-python-script-tool/
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.