<?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 Re: ExportToPNG annotation error between mapdoc and python file ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331353#M25779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not reproduce with my own data.&amp;nbsp; Would it be possible for you to send a map package to &lt;A href="mailto:jbarrette@esri.com"&gt;jbarrette@esri.com&lt;/A&gt;?&amp;nbsp; I'm hopeful it is an isolated issue.&amp;nbsp; ExportToPNG has been around for a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 20:12:18 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2017-06-05T20:12:18Z</dc:date>
    <item>
      <title>ExportToPNG annotation error between mapdoc and python file ?</title>
      <link>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331352#M25778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; mxd = arcpy.mapping.MapDocument(r"CURRENT")&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.mapping.ExportToPNG(mxd, r"Z:\test\test2.png", "PAGE_LAYOUT", 1600, 2400, 400)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Maybe issue can be easy one but i've no clue for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above work perfectle as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/355543_pastedImage_5.png" style="width: 620px; height: 490px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i try outside from mapdoc from file as below i'm losing annotations. Labels seems fine. &lt;STRONG&gt;Any idea for this behaviour? Any idea for source of difference ?&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;mxd = arcpy.mapping.MapDocument(r"Z:\test\test.mxd")&lt;BR /&gt;arcpy.mapping.ExportToPNG(mxd, r"Z:\test\test.png", "PAGE_LAYOUT", 1600, 2400, 400)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/355553_pastedImage_8.png" style="width: 620px; height: 506px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 13:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331352#M25778</guid>
      <dc:creator>Yusuf_CelilKonak</dc:creator>
      <dc:date>2017-06-05T13:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToPNG annotation error between mapdoc and python file ?</title>
      <link>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331353#M25779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not reproduce with my own data.&amp;nbsp; Would it be possible for you to send a map package to &lt;A href="mailto:jbarrette@esri.com"&gt;jbarrette@esri.com&lt;/A&gt;?&amp;nbsp; I'm hopeful it is an isolated issue.&amp;nbsp; ExportToPNG has been around for a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 20:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331353#M25779</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2017-06-05T20:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToPNG annotation error between mapdoc and python file ?</title>
      <link>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331354#M25780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a follow-up,&amp;nbsp;I examined the data and I don't think this particular issue has to do with ExportToPNG.&amp;nbsp; The annotation symbolIDs for each annotation element did NOT exist in the symbol collection and is why they were appearing as red rectangles.&amp;nbsp; When I recalculated the IDs to match something that did exist, both export from CURRENT and stand-alone worked as expected.&amp;nbsp; Yusuf is looking into why the correct symbols are not in the collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 22:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttopng-annotation-error-between-mapdoc-and/m-p/331354#M25780</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2017-06-07T22:34:17Z</dc:date>
    </item>
  </channel>
</rss>

