<?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 Execution pauses when new layout pane created in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execution-pauses-when-new-layout-pane-created/m-p/1002262#M5749</link>
    <description>&lt;P&gt;I am writing an add-in that creates a layout frame, loads some layers into it, and exports the maps as .pdf documents. This is supposed to be an unattended batch process that runs on a series of folders in a file system. When this call is made:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ILayoutPane iNewLayoutPane = await FrameworkApplication.Panes.CreateLayoutPaneAsync(layout);&lt;/P&gt;&lt;P&gt;if the focus is not on ArcGIS PRO, execution pauses until I bring PRO to the foreground and click on the new layout tab. I see in the documentation that this is supposed to be called on the GUI thread. Is there a way to make sure this is the case? This line of code is in a static method in a code module, but is not enclosed in a QueuedTask statement.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 19:21:31 GMT</pubDate>
    <dc:creator>LesleyBross1</dc:creator>
    <dc:date>2020-11-17T19:21:31Z</dc:date>
    <item>
      <title>Execution pauses when new layout pane created</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/execution-pauses-when-new-layout-pane-created/m-p/1002262#M5749</link>
      <description>&lt;P&gt;I am writing an add-in that creates a layout frame, loads some layers into it, and exports the maps as .pdf documents. This is supposed to be an unattended batch process that runs on a series of folders in a file system. When this call is made:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ILayoutPane iNewLayoutPane = await FrameworkApplication.Panes.CreateLayoutPaneAsync(layout);&lt;/P&gt;&lt;P&gt;if the focus is not on ArcGIS PRO, execution pauses until I bring PRO to the foreground and click on the new layout tab. I see in the documentation that this is supposed to be called on the GUI thread. Is there a way to make sure this is the case? This line of code is in a static method in a code module, but is not enclosed in a QueuedTask statement.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 19:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/execution-pauses-when-new-layout-pane-created/m-p/1002262#M5749</guid>
      <dc:creator>LesleyBross1</dc:creator>
      <dc:date>2020-11-17T19:21:31Z</dc:date>
    </item>
  </channel>
</rss>

