<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating .lyr with Python script in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350547#M15482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN lang="en"&gt;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.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:29:06 GMT</pubDate>
    <dc:creator>NicolasRoux2</dc:creator>
    <dc:date>2021-12-11T16:29:06Z</dc:date>
    <item>
      <title>Creating .lyr with Python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350547#M15482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN lang="en"&gt;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.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350547#M15482</guid>
      <dc:creator>NicolasRoux2</dc:creator>
      <dc:date>2021-12-11T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .lyr with Python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350548#M15483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to share your current script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350548#M15483</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-01-30T22:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating .lyr with Python script</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350549#M15484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create a list :&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/436336_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand to create it in a Python array...&lt;/P&gt;&lt;P&gt;And at the end, is this example from ArcGIS Doc a good thinking way ?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/436352_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reading.&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 08:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-lyr-with-python-script/m-p/350549#M15484</guid>
      <dc:creator>NicolasRoux2</dc:creator>
      <dc:date>2019-02-01T08:28:36Z</dc:date>
    </item>
  </channel>
</rss>

