<?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: Using applySymbolFromGallery doesn't work for 3D symbols in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-applysymbolfromgallery-doesn-t-work-for-3d/m-p/1281130#M68217</link>
    <description>&lt;P&gt;The code examples "save" the result&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/symbol-class.htm" target="_blank"&gt;Symbol—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;they used "saveacopy", but try "save" since you aren't working from a toolbox it appears.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 00:23:36 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-04-21T00:23:36Z</dc:date>
    <item>
      <title>Using applySymbolFromGallery doesn't work for 3D symbols</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-applysymbolfromgallery-doesn-t-work-for-3d/m-p/1281075#M68210</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to change symbology of 3D layer using&amp;nbsp; arcpy. The final symbology, that I am trying to create is supposed to be &lt;STRONG&gt;Graduated colors&lt;/STRONG&gt; with the &lt;STRONG&gt;Centered Cube&lt;/STRONG&gt; symbol (e.g. picture bellow). I am using&amp;nbsp;'GraduatedColorsRenderer' and I am changing the symbol for each class (the symbol is same for each class). I am using&amp;nbsp; 'applySymbolFromGallery' method to change the symbol. The issue is that if I fill in some 3D symbol in this method the symbology is not applied. There is no error and the symbology is changed in content pane and also in symbology pane, but the symbols in Scene are not displayed.&amp;nbsp; If I use any 2D symbol, everything works just fine. (If i set the 3D symbol in GUI it also works)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried to iterate through the list of symbols (using 'listSymbolsFromGallery' method) and it seems like the 3D symbols&amp;nbsp;are there (that 's how I've found out the name of the desired symbol). I have also checked if the 3D symbology is added in the &lt;STRONG&gt;Add style table&lt;/STRONG&gt; and it was.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be grateful for any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;relpath = os.path.dirname(sys.argv[0])&lt;BR /&gt;p = arcpy.mp.ArcGISProject(relpath + 'path.aprx')&lt;BR /&gt;l = gen_map.listLayers()[4]&lt;BR /&gt;sym = l.symbology&lt;BR /&gt;&lt;BR /&gt;breakValues = [0.3,0.6,0.9,1.4,2.,2.8,3.7,4.6]&lt;BR /&gt;&lt;BR /&gt;sym.updateRenderer('GraduatedColorsRenderer')&lt;BR /&gt;if hasattr(sym, 'renderer'):&lt;BR /&gt;   if sym.renderer.type == 'GraduatedColorsRenderer':&lt;BR /&gt;      sym.renderer.classificationField = 'grid_code'&lt;BR /&gt;      sym.renderer.breakCount = 8&lt;BR /&gt;      sym.renderer.classBreaks[i].upperBound = breakValues[i]&lt;BR /&gt;      for i in range (8):&lt;BR /&gt;&lt;BR /&gt;       #I am changing the symbology here&lt;BR /&gt;       sym.renderer.classBreaks[i].symbol.applySymbolFromGallery('Centered Cube', 1)&lt;BR /&gt;&lt;BR /&gt;       if i == 0:&lt;BR /&gt;         sym.renderer.classBreaks[i].label = "less than "+str(breakValues[i])&lt;BR /&gt;       elif i == len(breakValues)-1:&lt;BR /&gt;         sym.renderer.classBreaks[i].label = "more than "+str(breakValues[i-1]+0.01)&lt;BR /&gt;       else:&lt;BR /&gt;         sym.renderer.classBreaks[i].label = str(breakValues[i-1]+0.01)+" - "+ str(breakValues[i])&lt;BR /&gt;&lt;BR /&gt;      cr = p.listColorRamps('Yellow to Red')[0]&lt;BR /&gt;      sym.renderer.colorRamp = cr&lt;BR /&gt;&lt;BR /&gt;      l.symbology = sym&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired Outcome:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Problem.PNG" style="width: 253px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68661i65F0D82166EEC318/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem.PNG" alt="Problem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 22:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-applysymbolfromgallery-doesn-t-work-for-3d/m-p/1281075#M68210</guid>
      <dc:creator>TomášAndrš</dc:creator>
      <dc:date>2023-04-20T22:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using applySymbolFromGallery doesn't work for 3D symbols</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-applysymbolfromgallery-doesn-t-work-for-3d/m-p/1281130#M68217</link>
      <description>&lt;P&gt;The code examples "save" the result&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/symbol-class.htm" target="_blank"&gt;Symbol—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;they used "saveacopy", but try "save" since you aren't working from a toolbox it appears.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 00:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-applysymbolfromgallery-doesn-t-work-for-3d/m-p/1281130#M68217</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-04-21T00:23:36Z</dc:date>
    </item>
  </channel>
</rss>

