<?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 How to programmatically get project default units in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676310#M13347</link>
    <description>&lt;P&gt;Hi Community, is there a way to get at a Pro project's default units programmatically? They can be set in Pro from Backstage &amp;gt; Options &amp;gt; Project &amp;gt; Units (see screenshot). I would have expected these settings to be exposed somewhere on ArcGIS.Desktop.Core.ApplicationOptions, but I can't find it there nor elsewhere. Or is this not exposed at all? A &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/access-project-units/m-p/794454" target="_self"&gt;similar question has been asked&lt;/A&gt;&amp;nbsp;some years ago but remained unanswered. Any hints are much appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ujr_esrich_0-1767794321135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146381i86AE1D262F2AB16E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ujr_esrich_0-1767794321135.png" alt="ujr_esrich_0-1767794321135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2026 14:03:13 GMT</pubDate>
    <dc:creator>ujr_esrich</dc:creator>
    <dc:date>2026-01-07T14:03:13Z</dc:date>
    <item>
      <title>How to programmatically get project default units</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676310#M13347</link>
      <description>&lt;P&gt;Hi Community, is there a way to get at a Pro project's default units programmatically? They can be set in Pro from Backstage &amp;gt; Options &amp;gt; Project &amp;gt; Units (see screenshot). I would have expected these settings to be exposed somewhere on ArcGIS.Desktop.Core.ApplicationOptions, but I can't find it there nor elsewhere. Or is this not exposed at all? A &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/access-project-units/m-p/794454" target="_self"&gt;similar question has been asked&lt;/A&gt;&amp;nbsp;some years ago but remained unanswered. Any hints are much appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ujr_esrich_0-1767794321135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146381i86AE1D262F2AB16E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ujr_esrich_0-1767794321135.png" alt="ujr_esrich_0-1767794321135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 14:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676310#M13347</guid>
      <dc:creator>ujr_esrich</dc:creator>
      <dc:date>2026-01-07T14:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get project default units</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676442#M13348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a look at the ArcGIS Pro SDK API &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic30422.html" target="_self"&gt;reference&lt;/A&gt;. Code from reference below:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override async void OnClick()
        {
            await QueuedTask.Run(() =&amp;gt;
            {
                var unit_formats = Enum.GetValues(typeof(UnitFormatType))
                                  .OfType&amp;lt;UnitFormatType&amp;gt;().ToList();
                System.Diagnostics.Debug.WriteLine("Default project units\r\n");

                foreach (var unit_format in unit_formats)
                {
                    var default_unit = DisplayUnitFormats.Instance.GetDefaultProjectUnitFormat(unit_format);
                    var line = $"{unit_format.ToString()}: {default_unit.DisplayName}, {default_unit.UnitCode}";
                    System.Diagnostics.Debug.WriteLine(line);
                }
                System.Diagnostics.Debug.WriteLine("");
            });


        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 18:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676442#M13348</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2026-01-07T18:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get project default units</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676935#M13355</link>
      <description>&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Content-and-Items#project-units" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Content-and-Items#project-units&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 22:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1676935#M13355</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2026-01-08T22:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically get project default units</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1677240#M13370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;,&amp;nbsp;thanks a lot for your replies, these helped me to quickly work on.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 07:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-programmatically-get-project-default-units/m-p/1677240#M13370</guid>
      <dc:creator>ujr_esrich</dc:creator>
      <dc:date>2026-01-12T07:15:49Z</dc:date>
    </item>
  </channel>
</rss>

