<?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: arcpy - How to achieve that symbols have a fix size and are not scaled when zooming in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1292030#M67711</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132139"&gt;@Sven_Harpering&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks so much for your answer (and sorry for my late response). Using the "referenceScale" does the job for me and is sufficient to achieve the desired result. Cheers!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 12:38:52 GMT</pubDate>
    <dc:creator>lbd_bayern</dc:creator>
    <dc:date>2023-05-23T12:38:52Z</dc:date>
    <item>
      <title>arcpy - How to achieve that symbols have a fix size and are not scaled when zooming</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1289980#M67660</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I wrote an arcpy script to change the symbols for the (point) data of a layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to adjust the size of the symbol, its color, its outline width, its outline color, and also to replace the symbol with another symbol from the gallery.&lt;/P&gt;&lt;P&gt;However, what I have not been able to achieve is to set the symbol size to a fixed size such that it is not scaled when zooming - i.e. the symbol should get bigger when zooming in and smaller when zooming out.&lt;/P&gt;&lt;P&gt;In the documentation of the symbol class (&lt;A href="https://pro.arcgis.com/de/pro-app/latest/arcpy/mapping/symbol-class.htm)," target="_blank" rel="noopener"&gt;https://pro.arcgis.com/de/pro-app/latest/arcpy/mapping/symbol-class.htm),&lt;/A&gt;&amp;nbsp;the property &lt;EM&gt;useRealWorldUnits&lt;/EM&gt; is listed which - from the description - should be exactly what I need. However, the use of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;symbol.useRealWorldUnits = True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has no effect, the symbols are still scaled (I also tried setting the boolean to &lt;EM&gt;False&lt;/EM&gt; but this also does not change anything).&lt;/P&gt;&lt;P&gt;Here an excerpt of my code, already having the reference to the layer for which I want to alter the symbol:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;symbology = layer.symbology
renderer = symbology.renderer
symbol = renderer.symbol
symbol.size = 100
symbol.useRealWorldUnits = True # does not work..?
symbol.color = {'RGB' : [255, 0, 128, 60]}
symbol.outlineWidth = 0.2
symbol.outlineColor = {'RGB' : [255, 0, 0, 60]}
layer.symbology = symbology&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and its effects in ArcGIS Pro:&lt;/P&gt;&lt;P&gt;1. Before running the script, the map looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01_start.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70902i1C874B3F1AAAAB70/image-size/large?v=v2&amp;amp;px=999" role="button" title="01_start.jpg" alt="01_start.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. For testing purposes, I alter the symbology for a point data layer such that the symbols are huge (and also have a very noticeable color):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02_after run script_same zoom level.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70904iA794BFBA33F89F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="02_after run script_same zoom level.jpg" alt="02_after run script_same zoom level.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. When zooming out, the symbols are scaled and consequently cover a lot more area in "real world units":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03_after run script_different zoom level.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70905i71B65FA1196DE214/image-size/large?v=v2&amp;amp;px=999" role="button" title="03_after run script_different zoom level.jpg" alt="03_after run script_different zoom level.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can fix the symbol size to the real world units &lt;U&gt;by use of arcpy&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 2.9.2, and the arcpy version is also 2.9.2.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1289980#M67660</guid>
      <dc:creator>lbd_bayern</dc:creator>
      <dc:date>2023-05-17T06:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy - How to achieve that symbols have a fix size and are not scaled when zooming</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1289984#M67661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in my opinion you have to use the property "referenceScale" on the map. Looks like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject(r"CURRENT")
map = aprx.activeMap
map.referenceScale = 5000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the symbols have a fixed size in the map. I am not sure if you can set a fixed size for the layer directly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1289984#M67661</guid>
      <dc:creator>Sven_Harpering</dc:creator>
      <dc:date>2023-05-17T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy - How to achieve that symbols have a fix size and are not scaled when zooming</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1292030#M67711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/132139"&gt;@Sven_Harpering&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks so much for your answer (and sorry for my late response). Using the "referenceScale" does the job for me and is sufficient to achieve the desired result. Cheers!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 12:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-how-to-achieve-that-symbols-have-a-fix-size/m-p/1292030#M67711</guid>
      <dc:creator>lbd_bayern</dc:creator>
      <dc:date>2023-05-23T12:38:52Z</dc:date>
    </item>
  </channel>
</rss>

