<?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 ExportToPDF with Selection in ArcMap in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393133#M1311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: WestonSF&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed something odd happening when exporting to PDF using python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an ArcMap document with a parcels layer and a current selection made of one particular parcel. I have changed the selection colour from the standard ArcMap cyan to a yellow, so it looks like this when you make a selection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12466[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run a python command like this from ArcMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"ReportMap.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToPDF(mxd, r"Report.pdf")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PDF is fine with the yellow selection showing. But when I run this script when ArcMap is not open the selection colour in the PDF reverts back to cyan for some reason:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12467[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why that happens? I guess something needs to be set in the ExportToPDF parameters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 01:28:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-03-07T01:28:14Z</dc:date>
    <item>
      <title>ExportToPDF with Selection in ArcMap</title>
      <link>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393133#M1311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: WestonSF&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed something odd happening when exporting to PDF using python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an ArcMap document with a parcels layer and a current selection made of one particular parcel. I have changed the selection colour from the standard ArcMap cyan to a yellow, so it looks like this when you make a selection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12466[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run a python command like this from ArcMap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"ReportMap.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToPDF(mxd, r"Report.pdf")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PDF is fine with the yellow selection showing. But when I run this script when ArcMap is not open the selection colour in the PDF reverts back to cyan for some reason:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12467[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why that happens? I guess something needs to be set in the ExportToPDF parameters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 01:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393133#M1311</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-03-07T01:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToPDF with Selection in ArcMap</title>
      <link>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393134#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mzcoyle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing the default highlighting colour is stored in the normal.mxt I believe, not the mxd. I imagine this parameter won't be read when running outside an ArcMap session.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 12:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393134#M1312</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-03-07T12:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToPDF with Selection in ArcMap</title>
      <link>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393135#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you set the selection symbol via the main selection menu --&amp;gt; selection options.&amp;nbsp; Try setting your selection symbol at the layer level via the ayer properties symbology tab.&amp;nbsp; I just confirmed this and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393135#M1313</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-03-07T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToPDF with Selection in ArcMap</title>
      <link>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393136#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: WestonSF&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the selection colour in layer properties as Jeff suggested and it worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12490[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 18:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/exporttopdf-with-selection-in-arcmap/m-p/393136#M1314</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-03-07T18:02:41Z</dc:date>
    </item>
  </channel>
</rss>

