<?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 &amp;quot;Scale Symbols&amp;quot; of a layer with Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114647#M6797</link>
    <description>&lt;P&gt;not everything is exposed&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_blank"&gt;Python CIM access—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so you have to look carefully&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"layerDefinitions" : [
    {
      "type" : "CIMFeatureLayer",
      "name" : "GreatLakes",
      "uRI" : "CIMPATH=map/greatlakes.xml",
      "useSourceMetadata" : true,
      "description" : "GreatLakes",
      "layerType" : "Operational",
      "showLegends" : true,
      "visibility" : true,
      "displayCacheType" : "Permanent",
      "maxDisplayCacheAge" : 5,
      "showPopups" : true,
      "serviceLayerID" : -1,
      "autoGenerateFeatureTemplates" : true,
      "featureElevationExpression" : "0",
      "featureTable" : {
      "htmlPopupEnabled" : true,
      "selectable" : true,
      "featureCacheType" : "Session",
      "scaleSymbols" : true,
      "snappable" : true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;.... notice line 21&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 20:25:46 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-11-05T20:25:46Z</dc:date>
    <item>
      <title>Set "Scale Symbols" of a layer with Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114599#M6796</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;any idea how I can set the property "Scale Symbols" of a layer to true or false?&lt;/P&gt;&lt;P&gt;I didn't find anything in the doc.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 18:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114599#M6796</guid>
      <dc:creator>dstrigl</dc:creator>
      <dc:date>2021-11-05T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set "Scale Symbols" of a layer with Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114647#M6797</link>
      <description>&lt;P&gt;not everything is exposed&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_blank"&gt;Python CIM access—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so you have to look carefully&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"layerDefinitions" : [
    {
      "type" : "CIMFeatureLayer",
      "name" : "GreatLakes",
      "uRI" : "CIMPATH=map/greatlakes.xml",
      "useSourceMetadata" : true,
      "description" : "GreatLakes",
      "layerType" : "Operational",
      "showLegends" : true,
      "visibility" : true,
      "displayCacheType" : "Permanent",
      "maxDisplayCacheAge" : 5,
      "showPopups" : true,
      "serviceLayerID" : -1,
      "autoGenerateFeatureTemplates" : true,
      "featureElevationExpression" : "0",
      "featureTable" : {
      "htmlPopupEnabled" : true,
      "selectable" : true,
      "featureCacheType" : "Session",
      "scaleSymbols" : true,
      "snappable" : true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;.... notice line 21&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 20:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114647#M6797</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-11-05T20:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set "Scale Symbols" of a layer with Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114711#M6798</link>
      <description>&lt;P&gt;Thanks a lot for the hint!&lt;/P&gt;&lt;P&gt;I have done it now the following way:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;project = arcpy.mp.ArcGISProject("current")
map = project.listMaps("Map")[0]
layer = map.listLayers(...)[0]
l_cim = layer.getDefinition("V2")
l_cim.scaleSymbols = False
l_cim.visibility = False
layer.setDefinition(l_cim)&lt;/LI-CODE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Nov 2021 09:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/set-quot-scale-symbols-quot-of-a-layer-with-python/m-p/1114711#M6798</guid>
      <dc:creator>dstrigl</dc:creator>
      <dc:date>2021-11-06T09:57:08Z</dc:date>
    </item>
  </channel>
</rss>

