<?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 ConvertWebMaptoMapDocument removing my LEGEND ELEMENT in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/convertwebmaptomapdocument-removing-my-legend/m-p/587490#M6426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.join(&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.env.scratchFolder, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"empty.mxd"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; mxdfile.saveACopy(&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;if I do a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(mxdfile,"LEGEND_ELEMENT")) or&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(tempfile,"LEGEND_ELEMENT"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows and rightly so that I have a 1 LEGEND ELEMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i do:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;result = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;mapping&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.ConvertWebMapToMapDocument(Web_Map_as_JSON, &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, extra_conversion_options=AGSSecureServerServices)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;mxd = result.mapDocument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do a&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(mxd,"LEGEND_ELEMENT"))&lt;/P&gt;&lt;P&gt;my LEGEND ELEMENT is gone it shows 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be causing this? The mxd was saved with Desktop 10.6.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2020 15:18:06 GMT</pubDate>
    <dc:creator>RicardoRodrigues1</dc:creator>
    <dc:date>2020-01-31T15:18:06Z</dc:date>
    <item>
      <title>ConvertWebMaptoMapDocument removing my LEGEND ELEMENT</title>
      <link>https://community.esri.com/t5/mapping-questions/convertwebmaptomapdocument-removing-my-legend/m-p/587490#M6426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;path&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.join(&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.env.scratchFolder, &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"empty.mxd"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt; mxdfile.saveACopy(&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;if I do a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(mxdfile,"LEGEND_ELEMENT")) or&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(tempfile,"LEGEND_ELEMENT"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows and rightly so that I have a 1 LEGEND ELEMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i do:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;result = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;mapping&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.ConvertWebMapToMapDocument(Web_Map_as_JSON, &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;tempfile&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, extra_conversion_options=AGSSecureServerServices)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;mxd = result.mapDocument&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do a&lt;/P&gt;&lt;P&gt;len(arcpy.mapping.ListLayoutElements(mxd,"LEGEND_ELEMENT"))&lt;/P&gt;&lt;P&gt;my LEGEND ELEMENT is gone it shows 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be causing this? The mxd was saved with Desktop 10.6.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 15:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/convertwebmaptomapdocument-removing-my-legend/m-p/587490#M6426</guid>
      <dc:creator>RicardoRodrigues1</dc:creator>
      <dc:date>2020-01-31T15:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ConvertWebMaptoMapDocument removing my LEGEND ELEMENT</title>
      <link>https://community.esri.com/t5/mapping-questions/convertwebmaptomapdocument-removing-my-legend/m-p/587491#M6427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/convertwebmaptomapdocument-removing-my-legend/m-p/587491#M6427</guid>
      <dc:creator>RicardoRodrigues1</dc:creator>
      <dc:date>2020-02-07T15:44:55Z</dc:date>
    </item>
  </channel>
</rss>

