<?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 Layout.Export - selected features are not &amp;quot;exported&amp;quot; in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1577347#M12515</link>
    <description>&lt;P&gt;Using following code in &lt;STRONG&gt;ArcGIS Pro 3.4.0&lt;/STRONG&gt;, selected features are not drawn using selection symbology.&lt;/P&gt;&lt;P&gt;If layout is exported manually, selected features are exported.&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;STRONG&gt;ArcGIS Pro 2.9.9 &lt;/STRONG&gt;selected features are exported as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;var layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;await QueuedTask.Run(() =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Layout layout = layoutItem.GetLayout();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; layout.Export(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; new PDFFormat&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OutputFileName = "selected_features.pdf"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; new MapSeriesExportOptions&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ShowSelectedSymbology = true,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; );&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 10:13:30 GMT</pubDate>
    <dc:creator>leon_a</dc:creator>
    <dc:date>2025-01-21T10:13:30Z</dc:date>
    <item>
      <title>Layout.Export - selected features are not "exported"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1577347#M12515</link>
      <description>&lt;P&gt;Using following code in &lt;STRONG&gt;ArcGIS Pro 3.4.0&lt;/STRONG&gt;, selected features are not drawn using selection symbology.&lt;/P&gt;&lt;P&gt;If layout is exported manually, selected features are exported.&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;STRONG&gt;ArcGIS Pro 2.9.9 &lt;/STRONG&gt;selected features are exported as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;var layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;await QueuedTask.Run(() =&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Layout layout = layoutItem.GetLayout();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; layout.Export(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; new PDFFormat&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OutputFileName = "selected_features.pdf"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; },&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; new MapSeriesExportOptions&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ShowSelectedSymbology = true,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; );&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 10:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1577347#M12515</guid>
      <dc:creator>leon_a</dc:creator>
      <dc:date>2025-01-21T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Layout.Export - selected features are not "exported"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1578726#M12527</link>
      <description>&lt;P&gt;Thanks for reporting this.&amp;nbsp; We recently added a new, non-map series option on the export pane called "Show selection symbology".&amp;nbsp; This should work with mapviews, non-mapseries layouts and mapseries layouts.&amp;nbsp; As a result we plan to deprecate the option on the map series.&amp;nbsp; BUT the following should work and it does not.&amp;nbsp; We are investigating it and hope to address it immediately.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        async protected override void OnClick()
        {
            var layoutItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault(item =&amp;gt; item.Name.Equals("Layout_MS"));
            await QueuedTask.Run(() =&amp;gt;
            {
                Layout layout = layoutItem.GetLayout();
                layout.Export(
                  new PDFFormat
                  {
                      OutputFileName = @"c:\temp\selected_features_MS.pdf",
                      DoShowSelectionSymbology = true
                  } 
                );
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Jeff - Layout (SDK) and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 16:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1578726#M12527</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2025-01-24T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Layout.Export - selected features are not "exported"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579635#M12547</link>
      <description>&lt;P&gt;Could somebody look at why there are some objects missing from exported pdfs sometimes, but not always?&amp;nbsp; I get the same behavior if I export via ArcGIS's Export to PDF tool or the Layout.Export(ExportFormat) method in the SDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still working with 3.3 and the 3.3 SDK, but not limited to it.&amp;nbsp; If this has already been addressed in 3.4, it would be nice to hear.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579635#M12547</guid>
      <dc:creator>jeremywiles1981</dc:creator>
      <dc:date>2025-01-28T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Layout.Export - selected features are not "exported"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579659#M12549</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/713447"&gt;@jeremywiles1981&lt;/a&gt;&amp;nbsp;is this a different issue?&amp;nbsp; I.e., are selected features not being exported or are you talking about something else.&amp;nbsp; Can you reproduce in the UI and/or SDK?&lt;/P&gt;&lt;P&gt;Jeff - Layout (SDK) and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579659#M12549</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2025-01-28T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Layout.Export - selected features are not "exported"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579688#M12550</link>
      <description>&lt;P&gt;It is something else, but related.&amp;nbsp; Your team would likely be the one to speak to about this.&amp;nbsp; The pdfs do not match the layout when exported to pdf inconsistently, no matter what combination of settings are used.&amp;nbsp; Sometimes one element is missing, sometimes several, and sometimes none at all.&lt;/P&gt;&lt;P&gt;I have a case number that should include all of the relevant information, if that would help.&amp;nbsp; It was made nearly a year ago.&amp;nbsp; It was paused due to my sudden need for a medical leave, but I am going to request to re-open it if I cannot find an answer.&lt;/P&gt;&lt;P&gt;Something came up recently that has caused me to need to move quickly on this, so when I saw that somebody else was experiencing an issue exporting to pdf, I rashly commented on it.&lt;/P&gt;&lt;P&gt;If you have time and access to support data, it is case number&amp;nbsp;&lt;SPAN&gt;#03585308 - "Needs assistance with: when exporting, missing elements from a layout."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 20:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-export-selected-features-are-not-quot/m-p/1579688#M12550</guid>
      <dc:creator>jeremywiles1981</dc:creator>
      <dc:date>2025-01-28T20:10:48Z</dc:date>
    </item>
  </channel>
</rss>

