Hello everyone, I'm short to give you my ultimate goal of importing into a MXD file a symbology from a Python script. In the wait, the script must scan a series of "image" objects, list them, integrate them into a .lyr file and complete the process by integrating it into the famous .MXD file. I managed to list the pictures. To create a lyr file from an existing toc. But I do not see how to turn them into .Lyr and inject everything into the MXD. I am available for any exchange on this subject.
Hi Marisa,
I'd like to add new symbology items (PNG files for example) on an empty layer on ArcMap. I don't have at first a .style element or anything else.
On docs, arcmap could read or update list of items via Python by creating an array. And I don't understand how to convert this array on a .style or .lyr file. And add this on an MXD file.
I can create a list :
I don't understand to create it in a Python array...
And at the end, is this example from ArcGIS Doc a good thinking way ?
Thanks for your reading.
Nicolas
Hi Nicolas,
Would you be able to share your current script?
Also, to confirm, you would like to add a layer file to an MXD via python or you would like to apply the symbology from a layer file to a layer in an MXD?
Best of luck,
Marisa
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.