<?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 Using CIMGridLine.ElementType GridElementType.Corner in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-cimgridline-elementtype-gridelementtype/m-p/813127#M2418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;any sample code for using CIMGridLine with GridElementType.Corner?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the code given here&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/240380-how-to-add-cimgraticule-into-mapframe-object?commentID=888447#comment"&gt;https://community.esri.com/message/888447-re-how-to-add-cimgraticule-into-mapframe-object?commentID=888447#comment-888447&lt;/A&gt;, but keep crashing as I am not sure which properties are required or how exactly VisibleIndices is used (if at all?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;GridElementType.Corner&amp;nbsp;needs to be used in conjunction with CIMGraticule.IsAutoScaled = true.&lt;/P&gt;&lt;P&gt;If CIMGridPattern Interval = 0 then the coordinates will show at the exact corners. If this has a value the coordinates will show at the closest auto scaled tick to the corner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So edit code from above to include:&lt;/P&gt;&lt;P&gt;var gridLabelsNorthSouth = new CIMGridLine&lt;BR /&gt; {&lt;BR /&gt; Name = "Corner Label",&lt;BR /&gt; ElementType = GridElementType.Corner,&lt;BR /&gt; GridLineOrientation = GridLineOrientation.NorthSouth,&lt;/P&gt;&lt;P&gt;Pattern = new CIMGridPattern { Interval = 0, Start = 0, Stop = 1, Gap = 0 },&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mapGrid = new CIMGraticule&lt;BR /&gt; {&lt;BR /&gt; Name = "Graticule",&lt;BR /&gt; IsVisible = true,&lt;BR /&gt; IsAutoScaled = true,&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2020 17:26:17 GMT</pubDate>
    <dc:creator>ChrisLocke</dc:creator>
    <dc:date>2020-05-18T17:26:17Z</dc:date>
    <item>
      <title>Using CIMGridLine.ElementType GridElementType.Corner</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-cimgridline-elementtype-gridelementtype/m-p/813127#M2418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;any sample code for using CIMGridLine with GridElementType.Corner?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the code given here&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/240380-how-to-add-cimgraticule-into-mapframe-object?commentID=888447#comment"&gt;https://community.esri.com/message/888447-re-how-to-add-cimgraticule-into-mapframe-object?commentID=888447#comment-888447&lt;/A&gt;, but keep crashing as I am not sure which properties are required or how exactly VisibleIndices is used (if at all?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;GridElementType.Corner&amp;nbsp;needs to be used in conjunction with CIMGraticule.IsAutoScaled = true.&lt;/P&gt;&lt;P&gt;If CIMGridPattern Interval = 0 then the coordinates will show at the exact corners. If this has a value the coordinates will show at the closest auto scaled tick to the corner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So edit code from above to include:&lt;/P&gt;&lt;P&gt;var gridLabelsNorthSouth = new CIMGridLine&lt;BR /&gt; {&lt;BR /&gt; Name = "Corner Label",&lt;BR /&gt; ElementType = GridElementType.Corner,&lt;BR /&gt; GridLineOrientation = GridLineOrientation.NorthSouth,&lt;/P&gt;&lt;P&gt;Pattern = new CIMGridPattern { Interval = 0, Start = 0, Stop = 1, Gap = 0 },&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mapGrid = new CIMGraticule&lt;BR /&gt; {&lt;BR /&gt; Name = "Graticule",&lt;BR /&gt; IsVisible = true,&lt;BR /&gt; IsAutoScaled = true,&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 17:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-cimgridline-elementtype-gridelementtype/m-p/813127#M2418</guid>
      <dc:creator>ChrisLocke</dc:creator>
      <dc:date>2020-05-18T17:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using CIMGridLine.ElementType GridElementType.Corner</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-cimgridline-elementtype-gridelementtype/m-p/813128#M2419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;GridElementType.Corner&amp;nbsp;needs to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;be used in conjunction with CIMGraticule.IsAutoScaled = true.&lt;/P&gt;&lt;P&gt;If CIMGridPattern Interval = 0 then the coordinates will show at the exact corners. If this has a value the coordinates will show at the closest auto scaled tick to the corner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So edit code from above to include:&lt;/P&gt;&lt;P&gt;var gridLabelsNorthSouth = new CIMGridLine&lt;BR /&gt;{&lt;BR /&gt;Name = "Corner Label",&lt;BR /&gt;ElementType = GridElementType.Corner,&lt;BR /&gt;GridLineOrientation = GridLineOrientation.NorthSouth,&lt;/P&gt;&lt;P&gt;Pattern = new CIMGridPattern { Interval = 0, Start = 0, Stop = 1, Gap = 0 },&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mapGrid = new CIMGraticule&lt;BR /&gt;{&lt;BR /&gt;Name = "Graticule",&lt;BR /&gt;IsVisible = true,&lt;BR /&gt;IsAutoScaled = true,&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 19:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-cimgridline-elementtype-gridelementtype/m-p/813128#M2419</guid>
      <dc:creator>ChrisLocke</dc:creator>
      <dc:date>2020-05-19T19:13:41Z</dc:date>
    </item>
  </channel>
</rss>

