<?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 How to group graphic elements before adding to TargetGraphicsLayer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-group-graphic-elements-before-adding-to/m-p/1148412#M7851</link>
    <description>&lt;P&gt;Hello, I'm in the process of converting an ArcMap add-in that creates compass rose graphics for fire towers.&amp;nbsp; I have it functioning but am now having issues.&amp;nbsp; If a user selects all possible options when creating the compass rose, there can be up to 813 graphic elements per compass rose.&amp;nbsp; In ArcMap, this was not an issue. users could create as many as needed but in ArcGIS Pro, I hit the maximum of 4000 elements in a big hurry.&amp;nbsp; In ArcMap, all elements were grouped.&amp;nbsp; I can't seem to figure out how to do the grouping in ArcPRO.&amp;nbsp; Although I don't think even grouping will help with the 4000 limit.&lt;/P&gt;&lt;P&gt;Is it possible to create one group element from my List&amp;lt;CIMGraphic&amp;gt; before adding it to the Target Layer?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;List&amp;lt;CIMGraphic&amp;gt; graphics = clsCompassRose.DrawRosette(cro, MapView.Active.Map.TargetGraphicsLayer, false, ref myMagVar);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;MapView.Active.Map.TargetGraphicsLayer.AddElements(graphics);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Here is a sample of what is being created.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample.png" style="width: 581px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35097iAE009502DAF0B929/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample.png" alt="Sample.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;Jon&lt;/FONT&gt;&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>Sun, 27 Feb 2022 23:32:16 GMT</pubDate>
    <dc:creator>JonathanDewalt</dc:creator>
    <dc:date>2022-02-27T23:32:16Z</dc:date>
    <item>
      <title>How to group graphic elements before adding to TargetGraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-group-graphic-elements-before-adding-to/m-p/1148412#M7851</link>
      <description>&lt;P&gt;Hello, I'm in the process of converting an ArcMap add-in that creates compass rose graphics for fire towers.&amp;nbsp; I have it functioning but am now having issues.&amp;nbsp; If a user selects all possible options when creating the compass rose, there can be up to 813 graphic elements per compass rose.&amp;nbsp; In ArcMap, this was not an issue. users could create as many as needed but in ArcGIS Pro, I hit the maximum of 4000 elements in a big hurry.&amp;nbsp; In ArcMap, all elements were grouped.&amp;nbsp; I can't seem to figure out how to do the grouping in ArcPRO.&amp;nbsp; Although I don't think even grouping will help with the 4000 limit.&lt;/P&gt;&lt;P&gt;Is it possible to create one group element from my List&amp;lt;CIMGraphic&amp;gt; before adding it to the Target Layer?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;List&amp;lt;CIMGraphic&amp;gt; graphics = clsCompassRose.DrawRosette(cro, MapView.Active.Map.TargetGraphicsLayer, false, ref myMagVar);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;MapView.Active.Map.TargetGraphicsLayer.AddElements(graphics);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Here is a sample of what is being created.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample.png" style="width: 581px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35097iAE009502DAF0B929/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample.png" alt="Sample.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;Jon&lt;/FONT&gt;&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>Sun, 27 Feb 2022 23:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-group-graphic-elements-before-adding-to/m-p/1148412#M7851</guid>
      <dc:creator>JonathanDewalt</dc:creator>
      <dc:date>2022-02-27T23:32:16Z</dc:date>
    </item>
  </channel>
</rss>

