<?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 CIMMapGrid graphical elements? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimmapgrid-graphical-elements/m-p/1490493#M11663</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to access the graphical elements (geometry, linework, labels) from a&amp;nbsp;CIMMapGrid?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 13:39:02 GMT</pubDate>
    <dc:creator>GrantTaylor2</dc:creator>
    <dc:date>2024-06-12T13:39:02Z</dc:date>
    <item>
      <title>CIMMapGrid graphical elements?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimmapgrid-graphical-elements/m-p/1490493#M11663</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to access the graphical elements (geometry, linework, labels) from a&amp;nbsp;CIMMapGrid?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimmapgrid-graphical-elements/m-p/1490493#M11663</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2024-06-12T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: CIMMapGrid graphical elements?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimmapgrid-graphical-elements/m-p/1491893#M11675</link>
      <description>&lt;P&gt;You can access and work with the grid elements using the CIM (Pro's Cartographic Information Model.)&lt;/P&gt;&lt;P&gt;* Download the &lt;A href="https://github.com/Esri/arcgis-pro-sdk-cim-viewer" target="_self"&gt;CIMViewer&lt;/A&gt;. Compile and deployt it.&lt;/P&gt;&lt;P&gt;* Use the CIMViewer to examine the Layout. (In the layout view, select the layout and click the Show CIM Viewer button. This will give you an idea about the CIMLayout and how to access its elements.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1718296646900.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106992iD5BBD7C44C0C16B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1718296646900.png" alt="UmaHarano_0-1718296646900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;* Your code to access the MapGrid will look like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var layoutView = LayoutView.Active;
if (layoutView == null)
  return;
await QueuedTask.Run( () =&amp;gt; {
  var cimLayout = layoutView.Layout.GetDefinition();
  var layoutElements = cimLayout.Elements;
  var mapFrame = layoutElements.OfType&amp;lt;CIMMapFrame&amp;gt;().FirstOrDefault();
  var mapGirds = mapFrame.Grids;
  //get the first map grid
  var mapGrid = mapGirds.FirstOrDefault();
  //Do something with the map grid
  mapGrid.NeatlineSymbol = ....; //etc

});&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jun 2024 16:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimmapgrid-graphical-elements/m-p/1491893#M11675</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-06-13T16:40:04Z</dc:date>
    </item>
  </channel>
</rss>

