<?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: Retrieve Scale from All Maps in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1125568#M7484</link>
    <description>&lt;P&gt;I don't see scale but to get the extent, this works:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override async void OnClick()
{
    //Saving the project is needed to assure the 
    // map definitions are in sync with the view extents
    await Project.Current.SaveAsync();
    await QueuedTask.Run(() =&amp;gt;
    {
        foreach (var mapdef in Project.Current.Items
        .OfType&amp;lt;MapProjectItem&amp;gt;()
        .Select(itm =&amp;gt; itm.GetMap().GetDefinition()))
        {
            Trace.WriteLine(mapdef.DefaultExtent.ToJson());
        }

    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 20:42:41 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2021-12-13T20:42:41Z</dc:date>
    <item>
      <title>Retrieve Scale from All Maps</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1112293#M7302</link>
      <description>&lt;P&gt;I am able to get a list of all maps in a project (&lt;STRONG&gt;Project.Current.GetItems&amp;lt;MapProjectItem&amp;gt;()&lt;/STRONG&gt;) and display a number of properties, like name, layers, spatial reference, etc.&amp;nbsp; One thing I cannot seem to access is the current scale for each of these maps (&lt;STRONG&gt;MapProjectItem&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;I would like to retrieve the scale for all of my maps in my project.&amp;nbsp; I know you can retrieve the scale for an active map (&lt;STRONG&gt;MapView.Active.Camera.Scale&lt;/STRONG&gt;), but how do I get the scale for a map that is not active?&amp;nbsp; Can I retrieve the scale from each map without making it the active map in my project?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 01:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1112293#M7302</guid>
      <dc:creator>TheBobScript</dc:creator>
      <dc:date>2021-10-29T01:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Scale from All Maps</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1125568#M7484</link>
      <description>&lt;P&gt;I don't see scale but to get the extent, this works:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override async void OnClick()
{
    //Saving the project is needed to assure the 
    // map definitions are in sync with the view extents
    await Project.Current.SaveAsync();
    await QueuedTask.Run(() =&amp;gt;
    {
        foreach (var mapdef in Project.Current.Items
        .OfType&amp;lt;MapProjectItem&amp;gt;()
        .Select(itm =&amp;gt; itm.GetMap().GetDefinition()))
        {
            Trace.WriteLine(mapdef.DefaultExtent.ToJson());
        }

    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 20:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1125568#M7484</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-12-13T20:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Scale from All Maps</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1126901#M7508</link>
      <description>&lt;P&gt;Hi Kirk - T&lt;SPAN&gt;hanks for taking the time to reply.&amp;nbsp; I'll take a look at what you have shared and see if that helps with what I'm after.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 20:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/retrieve-scale-from-all-maps/m-p/1126901#M7508</guid>
      <dc:creator>TheBobScript</dc:creator>
      <dc:date>2021-12-16T20:17:38Z</dc:date>
    </item>
  </channel>
</rss>

