<?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: How can the scale of a mapframe changed with arcpy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464766#M36400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is solved. Setting the viewing options in the mapframe properties to "none" enables the python code to run properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 10:32:46 GMT</pubDate>
    <dc:creator>ThomasKölbel</dc:creator>
    <dc:date>2017-10-13T10:32:46Z</dc:date>
    <item>
      <title>How can the scale of a mapframe changed with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464763#M36397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Pro 1.2&lt;/P&gt;&lt;P&gt;2D Map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If tried this code:&lt;/P&gt;&lt;P&gt;print(mf.camera.scale)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 125000.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mf = myMapframe&lt;/P&gt;&lt;P&gt;mf.camera.type = "MAP"&lt;BR /&gt;mf.camera.setExtent(extent)&lt;BR /&gt;mf.camera.scale = 500000.0&lt;/P&gt;&lt;P&gt;print(mf.camera.scale)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 125000.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, nothing happend&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464763#M36397</guid>
      <dc:creator>ThomasKölbel</dc:creator>
      <dc:date>2016-12-20T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can the scale of a mapframe changed with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464764#M36398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap? Pro? CityEngine? something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464764#M36398</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-12-20T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can the scale of a mapframe changed with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464765#M36399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/camera-class.htm"&gt;Camera &lt;/A&gt;documentation for scale:&lt;/P&gt;&lt;TABLE style="border: 1px solid #dddddd; width: 767.33px; text-align: left; color: #4d4d4d; text-transform: none; line-height: 1.71em; text-indent: 0px; letter-spacing: normal; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 0.87em; font-style: normal; font-weight: normal; margin-bottom: 1.5em; word-spacing: 0px; white-space: normal; border-collapse: collapse; border-spacing: 0px; orphans: 2; widows: 2; background-color: white; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"&gt;&lt;TBODY&gt;&lt;TR style="text-align: left; border-bottom-color: #dddddd; border-bottom-width: 1px; border-bottom-style: solid;"&gt;&lt;TD style="padding: 12px; border-right-color: #dddddd; border-left-color: #dddddd; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;scale&lt;DIV style="-webkit-font-smoothing: antialiased;"&gt;(Read and Write)&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="padding: 12px; border-right-color: #dddddd; border-left-color: #dddddd; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;&lt;P style="line-height: 1.71em; font-size: 0.87rem; margin-top: 0em; margin-bottom: 0px; -webkit-font-smoothing: antialiased;"&gt;Provides the ability to either get or set the scale of the data in a map frame. A numerical (double) value must be used. Scales really only apply only to 2D map types because of their&lt;/P&gt;&lt;P style="line-height: 1.71em; font-size: 0.87rem; margin-top: 0em; margin-bottom: 0px; -webkit-font-smoothing: antialiased;"&gt;planimetric view of the data. Scales can be returned from 3D maps types but are only an estimation.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 12px; border-right-color: #dddddd; border-left-color: #dddddd; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;Double&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Are you working with a 3D map or 2D map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464765#M36399</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-12-20T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can the scale of a mapframe changed with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464766#M36400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is solved. Setting the viewing options in the mapframe properties to "none" enables the python code to run properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 10:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/464766#M36400</guid>
      <dc:creator>ThomasKölbel</dc:creator>
      <dc:date>2017-10-13T10:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can the scale of a mapframe changed with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/1015026#M59459</link>
      <description>&lt;P&gt;I am building a Python Toolbox out of ArcPro 2.5 and setting a MapFrame_Element Camera scale as well, and originally had the Layout Map Frame element with a Display Options Constraint of Fixed Scale. If this was set to Fixed, the python code could not change the scale, but if it was set to None, and I saved the Project (important if you're doing arcpy.mp.ArcGISProject('CURRENT'), it would change the map frame scale from the map frame.&lt;/P&gt;&lt;P&gt;The problem is that there is no indication of this fact. It is very implicit (maybe it should seem obvious) Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/257757"&gt;@ThomasKölbel&lt;/a&gt; for making this point evident.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-the-scale-of-a-mapframe-changed-with-arcpy/m-p/1015026#M59459</guid>
      <dc:creator>PaulPanehal</dc:creator>
      <dc:date>2021-01-08T14:42:43Z</dc:date>
    </item>
  </channel>
</rss>

