<?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 Overriding scale ranges in ArcGIS Desktop, problem with SaveDefaultUserScales() ? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/overriding-scale-ranges-in-arcgis-desktop-problem/m-p/497818#M13369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've overridden the default scale range using ArcObjects 10.2 in ArcMap 10.2.1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;IDisplayTransformationScales displayTransformationScale = (IDisplayTransformationScales)pActiveView.ScreenDisplay.DisplayTransformation;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; displayTransformationScale.RemoveAllUserScales();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; foreach (UtmZone20Enum utmZone20Enum in Enum.GetValues(typeof(UtmZone20Enum)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; {displayTransformationScale.AddUserScale((double)utmZone20Enum);}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;displayTransformationScale.SaveDefaultUserScales();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;[...]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;pActiveView.ContentsChanged();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pActiveView.Refresh();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The range looks fine in the "Scale Settings" dialog , but it doesn't get refreshed to the actual "Map Scale" dropdown listbox when I call&amp;nbsp;SaveDefaultUserScales() on the&amp;nbsp;IDisplayTransformationScales interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/001w/001w000000sq000000.htm" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/001w/001w000000sq000000.htm"&gt;IDisplayTransformationScales.SaveDefaultUserScales Method (ArcObjects .NET 10.1 SDK)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I click on OK in the Scale Settings Dialog, it does get updated.&lt;/P&gt;&lt;P&gt;Is there a known problem with the&amp;nbsp;&lt;SPAN&gt;SaveDefaultUserScales() method ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG __jive_id="227041" alt="Scale Settings dialog with changed scale range." class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/227041_ScaleSettings.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 14:40:39 GMT</pubDate>
    <dc:creator>LeoSavoie</dc:creator>
    <dc:date>2016-09-13T14:40:39Z</dc:date>
    <item>
      <title>Overriding scale ranges in ArcGIS Desktop, problem with SaveDefaultUserScales() ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/overriding-scale-ranges-in-arcgis-desktop-problem/m-p/497818#M13369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've overridden the default scale range using ArcObjects 10.2 in ArcMap 10.2.1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;IDisplayTransformationScales displayTransformationScale = (IDisplayTransformationScales)pActiveView.ScreenDisplay.DisplayTransformation;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; displayTransformationScale.RemoveAllUserScales();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; foreach (UtmZone20Enum utmZone20Enum in Enum.GetValues(typeof(UtmZone20Enum)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; {displayTransformationScale.AddUserScale((double)utmZone20Enum);}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;displayTransformationScale.SaveDefaultUserScales();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;[...]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;pActiveView.ContentsChanged();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pActiveView.Refresh();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The range looks fine in the "Scale Settings" dialog , but it doesn't get refreshed to the actual "Map Scale" dropdown listbox when I call&amp;nbsp;SaveDefaultUserScales() on the&amp;nbsp;IDisplayTransformationScales interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/001w/001w000000sq000000.htm" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/001w/001w000000sq000000.htm"&gt;IDisplayTransformationScales.SaveDefaultUserScales Method (ArcObjects .NET 10.1 SDK)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I click on OK in the Scale Settings Dialog, it does get updated.&lt;/P&gt;&lt;P&gt;Is there a known problem with the&amp;nbsp;&lt;SPAN&gt;SaveDefaultUserScales() method ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG __jive_id="227041" alt="Scale Settings dialog with changed scale range." class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/227041_ScaleSettings.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/overriding-scale-ranges-in-arcgis-desktop-problem/m-p/497818#M13369</guid>
      <dc:creator>LeoSavoie</dc:creator>
      <dc:date>2016-09-13T14:40:39Z</dc:date>
    </item>
  </channel>
</rss>

