<?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: Having trouble on disabling the scale option while using ArcGIS pro SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1093062#M7081</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It worked like a miracle for me, much appreciated.&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 12:01:22 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-08-27T12:01:22Z</dc:date>
    <item>
      <title>Having trouble on disabling the scale option while using ArcGIS pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092632#M7077</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We'd like to &lt;STRONG&gt;disable the scaling option in ArcGIS Pro&lt;/STRONG&gt;, but we're not sure how to do so using the SDK. Before generating the sheets in layout view, we must disable the scale option to prevent further scale edits in MapFrame from occurring. Is there a method to use that I'm not aware of?&lt;/P&gt;&lt;P&gt;Currently the scale option is editable as shown below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;current output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_0-1629968267312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21777iCC5D3287C61002AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShabinaBano_0-1629968267312.png" alt="ShabinaBano_0-1629968267312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;we want to greyed it out(disabled) as below screenshot using C#&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;expected output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_1-1629969292067.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21779iC5B8F7A503BA86C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShabinaBano_1-1629969292067.png" alt="ShabinaBano_1-1629969292067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092632#M7077</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-26T09:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble on disabling the scale option while using ArcGIS pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092743#M7078</link>
      <description>&lt;P&gt;Do you want to 'lock in' a single fixed scale on you map display so that the map view only allows a that scale and hence all user zoom in/out actions as disabled?&amp;nbsp; &amp;nbsp;As if you were configuring a single scale option and checking the 'only display this scale' option?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1629992833065.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21803i45E0544691ADC951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1629992833065.png" alt="Wolf_0-1629992833065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 15:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092743#M7078</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-08-26T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble on disabling the scale option while using ArcGIS pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092751#M7079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt;&amp;nbsp; Yes you got it right, I want to&amp;nbsp;&lt;SPAN&gt;'lock in' a single fixed scale on my layout view&amp;nbsp; so that it will only allows that scale and hence all user zoom in/out actions will&amp;nbsp; disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suppose at the time of sheet generation the scale is 1:6000 (coming from the database), so the user should be unable to change&amp;nbsp; the scale&amp;nbsp; to 1:500 or whatever scale he desires, and the scale customization option should be disabled.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 15:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092751#M7079</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-26T15:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble on disabling the scale option while using ArcGIS pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092824#M7080</link>
      <description>&lt;P&gt;To disable or "lock in" the scale for a MapFrame in a Layout, the CIM definition of the Layout Map Frame has to be configured. CIM is Pro's Cartographic Information Model.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code snippet below illustrates this. I get the Camera and Extent of the MapView associated with the Map Frame. The Map Frame is then "locked" to this scale.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueuedTask.Run( () =&amp;gt; {
        var layoutMapFrame = LayoutView.Active.ActiveMapFrame;
        //Get the CIM Definition of the Map Frame
        var cimMapFrame = layoutMapFrame.GetDefinition() as CIMMapFrame;
        //Get the Camera and Extent properties on the associated Map View of the map frame.
        var mapView = layoutMapFrame.GetMapView(LayoutView.Active);
        var mapViewCamera = mapView.Camera;
        var mapViewExtent = mapView.Extent;
        //Create a new CIMAutoCamera
        //using the mapview's camera and extent.
        //Create CIMViewCamera first. 
        //This is used in the CIMAutoCamera
        var cimViewCamera = new CIMViewCamera
        {
          Heading = mapViewCamera.Heading,
          Pitch = mapViewCamera.Pitch,
          Roll = mapViewCamera.Roll,
          Scale = mapViewCamera.Scale,
          ViewportHeight = mapViewCamera.ViewportHeight,
          ViewportWidth = mapViewCamera.ViewportWidth,
          X = mapViewCamera.X,
          Y = mapViewCamera.Y,
          Z = mapViewCamera.Z
        };
        //Create CIMAutoCamera
        var autoCamera = new CIMAutoCamera
        {
          Camera = cimViewCamera,
          Extent = mapViewExtent,
          AutoCameraType = AutoCameraType.Scale,
          Source = AutoCameraSource.Fixed,
          SyncRotation = true
        };

        //Set the MapFrame's auto camera to the new CIMAutoCamera
        cimMapFrame.AutoCamera = autoCamera;
        //Set the CIM Definition
        layoutMapFrame.SetDefinition(cimMapFrame);
        
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1092824#M7080</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-08-26T17:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble on disabling the scale option while using ArcGIS pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1093062#M7081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It worked like a miracle for me, much appreciated.&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/having-trouble-on-disabling-the-scale-option-while/m-p/1093062#M7081</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-27T12:01:22Z</dc:date>
    </item>
  </channel>
</rss>

