<?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 ConvertToGraphics without modifying the layout? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-converttographics-without-modifying-the/m-p/1697938#M13505</link>
    <description>&lt;P&gt;Page elements such as a scalebar can be converted to a collection of elements (rectangles, texts, ...), using element.ConvertToGraphics().&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this is applied directly to the element on the layout, and after being converted, the scalebar does no longer have a connection to the map.&lt;/P&gt;&lt;P&gt;Is there a way to get the subelements of an element without altering the element itself? Can I for instance clone the element in memory? Or clone the entire layout, and delete the copy afterwards?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2026 14:03:30 GMT</pubDate>
    <dc:creator>BerendVeldkamp</dc:creator>
    <dc:date>2026-04-23T14:03:30Z</dc:date>
    <item>
      <title>How to ConvertToGraphics without modifying the layout?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-converttographics-without-modifying-the/m-p/1697938#M13505</link>
      <description>&lt;P&gt;Page elements such as a scalebar can be converted to a collection of elements (rectangles, texts, ...), using element.ConvertToGraphics().&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this is applied directly to the element on the layout, and after being converted, the scalebar does no longer have a connection to the map.&lt;/P&gt;&lt;P&gt;Is there a way to get the subelements of an element without altering the element itself? Can I for instance clone the element in memory? Or clone the entire layout, and delete the copy afterwards?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 14:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-converttographics-without-modifying-the/m-p/1697938#M13505</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2026-04-23T14:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to ConvertToGraphics without modifying the layout?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-converttographics-without-modifying-the/m-p/1699195#M13521</link>
      <description>&lt;P&gt;Perhaps "Clone"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var lv = LayoutView.Active;
var layout = lv?.Layout;
if (layout == null) return;

QueuedTask.Run(() =&amp;gt;
{
   var sel_elems = lv.GetSelectedElements()
                    .OfType&amp;lt;GraphicElement&amp;gt;()?.ToList() ??
                     new List&amp;lt;GraphicElement&amp;gt;();
   foreach(var elem in sel_elems)
   {
      var ge_clones = elem.Clone("Cloned_").ConvertToGraphics();
      if (ge_clones != null)
      {
         foreach(var ge_clone in ge_clones)
         {
           //TO DO - something with the converted elements
           //...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 21:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-converttographics-without-modifying-the/m-p/1699195#M13521</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2026-04-29T21:44:47Z</dc:date>
    </item>
  </channel>
</rss>

