<?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 layer.SendToBack and GroupElements in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/layer-sendtoback-and-groupelements/m-p/1262137#M65996</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We just converted over the code we were working on from 2.x to 3.x.&amp;nbsp; Everything, that we know of, is updated and seems to be working fine, except:&lt;/P&gt;&lt;P&gt;A description of the thing that is not working. This worked fine in 2.x.&lt;/P&gt;&lt;P&gt;//Created a polygon with text, added it to a layer&lt;BR /&gt;var elemTxtBox = symLayer.AddElement(polyTxtGra);&lt;/P&gt;&lt;P&gt;//need to get this new element behind some others&lt;BR /&gt;symLayer.SendToBack(elemTxtBox);&lt;/P&gt;&lt;P&gt;//added the element to an Element list so we can group them&lt;BR /&gt;glyphElems.Add(elemTxtBox);&lt;/P&gt;&lt;P&gt;//this will err, but only when doing the "symLayer.SendToBack(elemTxtBox)" above&lt;BR /&gt;symLayer.GroupElements(glyphElems);&lt;/P&gt;&lt;P&gt;If the SendToBack command is not called, nothing errs.&amp;nbsp; But then the elemTxtBox is on top of the other elements, which is not what we want.&lt;/P&gt;&lt;P&gt;I get a null reference when trying the Group Elements, however everything involved is there, there is nothing that is null.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 20:44:18 GMT</pubDate>
    <dc:creator>AndrewAlexander1</dc:creator>
    <dc:date>2023-02-27T20:44:18Z</dc:date>
    <item>
      <title>layer.SendToBack and GroupElements</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-sendtoback-and-groupelements/m-p/1262137#M65996</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We just converted over the code we were working on from 2.x to 3.x.&amp;nbsp; Everything, that we know of, is updated and seems to be working fine, except:&lt;/P&gt;&lt;P&gt;A description of the thing that is not working. This worked fine in 2.x.&lt;/P&gt;&lt;P&gt;//Created a polygon with text, added it to a layer&lt;BR /&gt;var elemTxtBox = symLayer.AddElement(polyTxtGra);&lt;/P&gt;&lt;P&gt;//need to get this new element behind some others&lt;BR /&gt;symLayer.SendToBack(elemTxtBox);&lt;/P&gt;&lt;P&gt;//added the element to an Element list so we can group them&lt;BR /&gt;glyphElems.Add(elemTxtBox);&lt;/P&gt;&lt;P&gt;//this will err, but only when doing the "symLayer.SendToBack(elemTxtBox)" above&lt;BR /&gt;symLayer.GroupElements(glyphElems);&lt;/P&gt;&lt;P&gt;If the SendToBack command is not called, nothing errs.&amp;nbsp; But then the elemTxtBox is on top of the other elements, which is not what we want.&lt;/P&gt;&lt;P&gt;I get a null reference when trying the Group Elements, however everything involved is there, there is nothing that is null.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 20:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-sendtoback-and-groupelements/m-p/1262137#M65996</guid>
      <dc:creator>AndrewAlexander1</dc:creator>
      <dc:date>2023-02-27T20:44:18Z</dc:date>
    </item>
  </channel>
</rss>

