<?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 Legends in arcpy for arcgis pro 1.4 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322059#M14049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding map layers in an arcpy script within arcgis pro 1.4. The layer is added to the legend, but how can I then format the legend items in the arcpy script? I could do this in arcpy for arcmap using the mapping module, but that isn't available in arcgis pro?! Is there another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More concrete, how can I translate the script below to something that works in arcpy for acrgis pro:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;styleItem&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListStyleItems&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"USER_STYLE"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Legend Items"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"NewDefaultLegendStyle"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;lyr&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListLayers&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;mxd&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'Rivers'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;df&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;legend&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListLayoutElements&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;mxd&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"LEGEND_ELEMENT"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;legend&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;updateItem&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;lyr&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;styleItem&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2017 09:45:36 GMT</pubDate>
    <dc:creator>Marliesde_Keizer</dc:creator>
    <dc:date>2017-02-14T09:45:36Z</dc:date>
    <item>
      <title>Legends in arcpy for arcgis pro 1.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322059#M14049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding map layers in an arcpy script within arcgis pro 1.4. The layer is added to the legend, but how can I then format the legend items in the arcpy script? I could do this in arcpy for arcmap using the mapping module, but that isn't available in arcgis pro?! Is there another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More concrete, how can I translate the script below to something that works in arcpy for acrgis pro:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;styleItem&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListStyleItems&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"USER_STYLE"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Legend Items"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"NewDefaultLegendStyle"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;lyr&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListLayers&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;mxd&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'Rivers'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;df&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;legend&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapping&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListLayoutElements&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;mxd&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"LEGEND_ELEMENT"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;legend&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;updateItem&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;lyr&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;styleItem&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 09:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322059#M14049</guid>
      <dc:creator>Marliesde_Keizer</dc:creator>
      <dc:date>2017-02-14T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Legends in arcpy for arcgis pro 1.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322060#M14050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick note... arcpy.mapping in arcmap is now &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm"&gt;arcpy.ma in PRO&lt;/A&gt; have a look at the object model, but it may be as simple as changing &lt;EM&gt;mapping&lt;/EM&gt; to &lt;EM&gt;ma&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 10:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322060#M14050</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-14T10:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Legends in arcpy for arcgis pro 1.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322061#M14051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mapping is changed to mp, right? That is also where the link is forwarding to. Just changing mapping into mp is not working. It seems to be a differently set up module. Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 11:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322061#M14051</guid>
      <dc:creator>Marliesde_Keizer</dc:creator>
      <dc:date>2017-02-14T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Legends in arcpy for arcgis pro 1.4</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322062#M14052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a matter of browsing around, but there is&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm"&gt; a diagram on this link that &lt;/A&gt;may help with navigation, since things have 'moved around' as they indicate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 17:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/legends-in-arcpy-for-arcgis-pro-1-4/m-p/322062#M14052</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-14T17:57:37Z</dc:date>
    </item>
  </channel>
</rss>

