<?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: Set Data Frame Display Units in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330718#M8599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code you need is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;' Get a handle on DataFrame Dim pMap as IMap pMap = My.ArcMap.Document.FocusMap&amp;nbsp; ' Set Display Units to meters pMap.DistanceUnits = esriMeters&amp;nbsp; ' Set Map units pMap.MapUnits = esriMeters&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 09:14:23 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-01-22T09:14:23Z</dc:date>
    <item>
      <title>Set Data Frame Display Units</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330717#M8598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using VB.NET, I created a function that will always start ArcMap with a certain Projected Coordinate System. By default, the Map Units and Display Units (Data Frame) are set to Meters, when using this Spatial Reference. How can I change the Display Units?&amp;nbsp; I know how to change the Map Units to Kilometers (10), but how can I modify the code to change the Display Units?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; Dim dataView As IActiveView = My.ArcMap.Document.ActiveView&amp;nbsp; dataView.ScreenDisplay.DisplayTransformation.Units = 10&amp;nbsp; dataView.Refresh()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 17:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330717#M8598</guid>
      <dc:creator>DaveCouture</dc:creator>
      <dc:date>2014-01-21T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Data Frame Display Units</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330718#M8599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code you need is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;' Get a handle on DataFrame Dim pMap as IMap pMap = My.ArcMap.Document.FocusMap&amp;nbsp; ' Set Display Units to meters pMap.DistanceUnits = esriMeters&amp;nbsp; ' Set Map units pMap.MapUnits = esriMeters&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 09:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330718#M8599</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-01-22T09:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Data Frame Display Units</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330719#M8600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again!&amp;nbsp; It's funny that you can use the IDisplayTransformation Interface to change the Map Units, but you can't use it to change the Display Units. There are no members for it.&amp;nbsp; Also, I might be missing a Reference, because I get an error on the esriMeters Constant. That's why I use the Constant Value, instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004200000030000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004200000030000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 10:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-data-frame-display-units/m-p/330719#M8600</guid>
      <dc:creator>DaveCouture</dc:creator>
      <dc:date>2014-01-22T10:35:02Z</dc:date>
    </item>
  </channel>
</rss>

