<?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 Import layout file and use existing map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1141047#M7739</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to import a layout file (.pagx) to the ArcGIS Pro project using the following code snippet and it works properly but it adds new map to the project each time.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IProjectItem layoutItem = ItemFactory.Instance.Create(file, ItemFactory.ItemType.PathItem) as IProjectItem;
Project.Current.AddItem(layoutItem);&lt;/LI-CODE&gt;&lt;P&gt;I want to reuse the existing map in the project like when you import a file manually you have the option to reuse existing maps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reuse_Maps.png" style="width: 764px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33217iB4C1D24CD1C44465/image-size/large?v=v2&amp;amp;px=999" role="button" title="Reuse_Maps.png" alt="Reuse_Maps.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any wasy I can do this using the SDK?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Feb 2022 11:22:20 GMT</pubDate>
    <dc:creator>MohamedG</dc:creator>
    <dc:date>2022-02-06T11:22:20Z</dc:date>
    <item>
      <title>Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1141047#M7739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to import a layout file (.pagx) to the ArcGIS Pro project using the following code snippet and it works properly but it adds new map to the project each time.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IProjectItem layoutItem = ItemFactory.Instance.Create(file, ItemFactory.ItemType.PathItem) as IProjectItem;
Project.Current.AddItem(layoutItem);&lt;/LI-CODE&gt;&lt;P&gt;I want to reuse the existing map in the project like when you import a file manually you have the option to reuse existing maps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reuse_Maps.png" style="width: 764px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33217iB4C1D24CD1C44465/image-size/large?v=v2&amp;amp;px=999" role="button" title="Reuse_Maps.png" alt="Reuse_Maps.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any wasy I can do this using the SDK?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 11:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1141047#M7739</guid>
      <dc:creator>MohamedG</dc:creator>
      <dc:date>2022-02-06T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1141376#M7745</link>
      <description>&lt;P&gt;Thank you for your feedback.&amp;nbsp; The only solution currently is to remape the map frame and map surrounds to the current maps and then delete the newly added project item.&amp;nbsp; We are looking into adding method parameters to accomodate the UI setting.&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 21:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1141376#M7745</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-02-07T21:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1146098#M7813</link>
      <description>&lt;P&gt;Thank you very mush for response.&lt;/P&gt;&lt;P&gt;I hope it will be available soon.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1146098#M7813</guid>
      <dc:creator>MohamedG</dc:creator>
      <dc:date>2022-02-21T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1147613#M7839</link>
      <description>&lt;P&gt;We added this capability to the Pro SDK at 3.0.&amp;nbsp; Thank you for your feedback.&lt;/P&gt;&lt;P&gt;Jeff - arcpy.mp and Layout teams&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1147613#M7839</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-02-24T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1545375#M12144</link>
      <description>&lt;P&gt;Was this added? I've run into the same issue and I'm not able to find documentation for it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 19:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1545375#M12144</guid>
      <dc:creator>ScottDickison1</dc:creator>
      <dc:date>2024-10-03T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import layout file and use existing map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1546163#M12151</link>
      <description>&lt;P&gt;Try this link:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76003.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76003.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffBarrette_0-1728313053878.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116610i8715568D367D5A35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffBarrette_0-1728313053878.png" alt="JeffBarrette_0-1728313053878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/import-layout-file-and-use-existing-map/m-p/1546163#M12151</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-10-07T14:57:56Z</dc:date>
    </item>
  </channel>
</rss>

