<?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: Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190164#M8345</link>
    <description>&lt;P&gt;that was it -- assembly needed to be added.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 22:21:24 GMT</pubDate>
    <dc:creator>PeteVitt</dc:creator>
    <dc:date>2022-07-06T22:21:24Z</dc:date>
    <item>
      <title>Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190085#M8341</link>
      <description>&lt;P&gt;Hi - I've migrated project from 2.9 to 3.0 and am using this code in an attempt to get the layout:&amp;nbsp;&lt;/P&gt;&lt;P&gt;using ArcGIS.Desktop.Core;&lt;BR /&gt;using ArcGIS.Desktop.Mapping;&lt;BR /&gt;using ArcGIS.Desktop.Layouts;&lt;BR /&gt;using ArcGIS.Desktop.Framework.Contracts;&lt;BR /&gt;using ArcGIS.Desktop.Framework.Threading.Tasks;&lt;BR /&gt;using ArcGIS.Core.CIM;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;string paneName = activePane.Caption;&lt;/P&gt;&lt;P&gt;LayoutProjectItem layoutProjItem = Project.Current.GetItems&amp;lt;LayoutProjectItem&amp;gt;().FirstOrDefault(item =&amp;gt; item.Name.Equals(paneName));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Getting error:&amp;nbsp; type or namespace name 'LayoutProjectItem' could not be found.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see an ArcGIS Pro sdk 3.0 code snippet that looks like the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;LayoutProjectItem&lt;/SPAN&gt; &lt;SPAN class=""&gt;layoutItem&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;Project&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Current&lt;/SPAN&gt;.&lt;SPAN class=""&gt;GetItems&lt;/SPAN&gt;&amp;lt;&lt;SPAN class=""&gt;LayoutProjectItem&lt;/SPAN&gt;&amp;gt;()
                           .&lt;SPAN class=""&gt;FirstOrDefault&lt;/SPAN&gt;(&lt;SPAN class=""&gt;item&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;item&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Name&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Equals&lt;/SPAN&gt;(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;MyLayout&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#reference-layout-project-items-and-their-associated-layout" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#reference-layout-project-items-and-their-associated-layout&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What am I missing? The 'LayoutProjectItem' at 2.0&amp;nbsp; was in&amp;nbsp;ArcGIS.Desktop.Layouts&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 20:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190085#M8341</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2022-07-06T20:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190116#M8342</link>
      <description>&lt;P&gt;It is still there. U have something else going on.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11105.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11105.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 21:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190116#M8342</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-07-06T21:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190158#M8343</link>
      <description>&lt;P&gt;I'm only seeing the 5 items in the screenshot for &lt;SPAN&gt;IntelliSense&lt;/SPAN&gt; of ArcGIS.Desktop.Layouts.&amp;nbsp; Does this look wrong?&amp;nbsp; I converted the visual studio project from 2.9 to 3.0 with the utility.&amp;nbsp; Guess I'll try making a new project&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190158#M8343</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2022-07-06T22:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190161#M8344</link>
      <description>&lt;P&gt;FYI: that's the content of the ArcGIS.Desktop.Layouts namespace in the Extensions assembly.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic74111.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic74111.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Double check that you have a good reference to the ArcGIS.Desktop.Layouts assembly in your project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190161#M8344</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-07-06T22:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate 2.9 to 3.0 LayoutProjectItem -- LayoutProjectItem could not be found</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190164#M8345</link>
      <description>&lt;P&gt;that was it -- assembly needed to be added.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/migrate-2-9-to-3-0-layoutprojectitem/m-p/1190164#M8345</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2022-07-06T22:21:24Z</dc:date>
    </item>
  </channel>
</rss>

