<?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 Display.Invalidate on a point not showing entire point in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/display-invalidate-on-a-point-not-showing-entire/m-p/63098#M1723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my lack of terminology here as I am new to ArcGIS and ArcObjects.&lt;/P&gt;&lt;P&gt;I have managed to create a point feature and plot it as so:&lt;/P&gt;&lt;P&gt;IFeature feature = layerFeatureClass.CreateFeature();&lt;/P&gt;&lt;P&gt;IPoint p = world;&lt;BR /&gt; feature.Shape = p;&lt;BR /&gt; currentTemplate.SetDefaultValues(feature);&lt;BR /&gt; feature.Store();&lt;BR /&gt; &lt;BR /&gt; //Invalidate the area around the new feature&lt;/P&gt;&lt;P&gt;editor.Display.Invalidate(feature.Extent, true, (short)esriScreenCache.esriAllScreenCaches);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the point is rendered very small in arcmap until I cause a full refresh, then it draws it as it should.&lt;/P&gt;&lt;P&gt;Looking at the feature extent, the width and height is 0, which makes sense since it is a point, but I am wondering if this should be higher for the redraw since the point being plotted is not a single pixel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change it to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;editor.Display.Invalidate(null, true, (short)esriScreenCache.esriAllScreenCaches);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The point renders properly, but I am properly redrawing a lot of features that don't need redrawn in the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is an image of whats happening&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://imgur.com/a/ymNkl" title="http://imgur.com/a/ymNkl"&gt;Imgur: The most awesome images on the Internet&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 15:11:13 GMT</pubDate>
    <dc:creator>MauricioTerneus</dc:creator>
    <dc:date>2017-06-01T15:11:13Z</dc:date>
    <item>
      <title>Display.Invalidate on a point not showing entire point</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/display-invalidate-on-a-point-not-showing-entire/m-p/63098#M1723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my lack of terminology here as I am new to ArcGIS and ArcObjects.&lt;/P&gt;&lt;P&gt;I have managed to create a point feature and plot it as so:&lt;/P&gt;&lt;P&gt;IFeature feature = layerFeatureClass.CreateFeature();&lt;/P&gt;&lt;P&gt;IPoint p = world;&lt;BR /&gt; feature.Shape = p;&lt;BR /&gt; currentTemplate.SetDefaultValues(feature);&lt;BR /&gt; feature.Store();&lt;BR /&gt; &lt;BR /&gt; //Invalidate the area around the new feature&lt;/P&gt;&lt;P&gt;editor.Display.Invalidate(feature.Extent, true, (short)esriScreenCache.esriAllScreenCaches);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the point is rendered very small in arcmap until I cause a full refresh, then it draws it as it should.&lt;/P&gt;&lt;P&gt;Looking at the feature extent, the width and height is 0, which makes sense since it is a point, but I am wondering if this should be higher for the redraw since the point being plotted is not a single pixel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change it to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;editor.Display.Invalidate(null, true, (short)esriScreenCache.esriAllScreenCaches);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The point renders properly, but I am properly redrawing a lot of features that don't need redrawn in the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is an image of whats happening&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://imgur.com/a/ymNkl" title="http://imgur.com/a/ymNkl"&gt;Imgur: The most awesome images on the Internet&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/display-invalidate-on-a-point-not-showing-entire/m-p/63098#M1723</guid>
      <dc:creator>MauricioTerneus</dc:creator>
      <dc:date>2017-06-01T15:11:13Z</dc:date>
    </item>
  </channel>
</rss>

