<?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 Re: Polyline Drawing in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121995#M3206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at this &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=993&amp;amp;t=211065&amp;amp;mc=24#msgid636304"&gt;thread&lt;/A&gt;&lt;SPAN&gt; to see if there's anything in there that would help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 14:42:25 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2011-06-16T14:42:25Z</dc:date>
    <item>
      <title>Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121993#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am deveoping a standalone c# application using the MapControl in ArcGIS 9.3.&amp;nbsp; I am currently drawing polylines on the map, using the call "PartialRefresh(esriViewDrawPhase.esriViewForeground, null, null) to trigger an event causing my drawing code to be invoked.&amp;nbsp; This all works great however, I'd like to be able to redraw some polylines (that need to be updated/moved) and not others, and using this method all lines must get drawn each time the refresh is performed.&amp;nbsp; This causes the apperance of "flickering" as the majority of the lines did not change but get redrawn anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to just redraw some polylines and not others?&amp;nbsp; Is it possible to group polylines into different layers and only redraw some layers?&amp;nbsp; Ideas/suggestions are appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121993#M3204</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2011-06-16T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121994#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps you could benefit from dynamic display (9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisengine/dotnet/c9e1ccf5-df7d-44d3-a2da-d916f65fd94a.htm"&gt;http://resources.esri.com/help/9.3/arcgisengine/dotnet/c9e1ccf5-df7d-44d3-a2da-d916f65fd94a.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or basemap layers (arcgis 10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/02/01/Basemap-Layers-_2D00_-New-at-ArcGIS-10.aspx"&gt;http://blogs.esri.com/Dev/blogs/arcgisdesktop/archive/2010/02/01/Basemap-Layers-_2D00_-New-at-ArcGIS-10.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally also in 10 is the graphic tracker&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004tv000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004tv000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121994#M3205</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-06-16T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121995#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at this &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=993&amp;amp;t=211065&amp;amp;mc=24#msgid636304"&gt;thread&lt;/A&gt;&lt;SPAN&gt; to see if there's anything in there that would help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121995#M3206</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-06-16T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121996#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestions.&amp;nbsp; The v10 GraphicsTracker looks promising but unfortunatley I am stuck using 9.3 for now, as my customer invested over 40K in it about a year and a half ago...&amp;nbsp;&amp;nbsp; Also, I had tried using a dynamic display a while back and determined it was not well suited for the application.&amp;nbsp; Dont remember specifically but think it significantly degraded the map grahics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to experiment some more with custom layers and see where that takes me.&amp;nbsp; I'm still not sure if its possible to force a refresh on a single custom layer without causing other custom layers to be redrawn.&amp;nbsp;&amp;nbsp; If anyone has tried something like that, Id appriciate any input.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 17:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121996#M3207</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2011-06-16T17:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121997#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried using separate layers for groups of polylines and using the partialrefresh method that allows a single layer to be specified for redraw as described in docs (How to redraw the display)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Refresh a single layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pMap.PartialRefresh(esriViewGeography, pLayer, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/net/7b7dfcf8-18bd-4b11-bc67-cf9af9bd6591.htm"&gt;http://edndoc.esri.com/arcobjects/9.2/net/7b7dfcf8-18bd-4b11-bc67-cf9af9bd6591.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This partial refresh with an object reference passed does not call Draw() on my object/layer.&amp;nbsp; Draw only gets called if I provide null as the second parameter.&amp;nbsp; And as I expected, when I do that all of my polyline layers are refreshed (Draw is called on each layer)-- exactly what I wanted to avoid. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone done something like this and been successful?&amp;nbsp; Doc also implies that using the esriViewGraphics phase individual elements can be refreshed.&amp;nbsp; Has anyone tried that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 19:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121997#M3208</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2011-06-17T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121998#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have done graphics refresh and foreground refresh.&amp;nbsp; Neither will refresh a geographic layer.&amp;nbsp; Graphics refresh is for graphical elements (IElement) added to the graphics container of the activeview.&amp;nbsp; They work quite well but the elements are not stored in the geodatabase (unless it is annotation), they are stored in mxd.&amp;nbsp; Foreground drawing is trickier but I have used it with good results for non persisting geometries (custom rubber band when editing.)&amp;nbsp; Foreground objects get cleared at every refresh and must be redrawn on the screendisplay in the activeview refresh event for refresh on the foreground phase.&amp;nbsp; I found that gave me the best results for a geometry that changed quickly and often as a result of user interaction and I didn't need to store them at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could code a custom layer that draws to the foreground or to the graphic phase.&amp;nbsp; ILayer.Draw method passes in the phase to draw to.&amp;nbsp; That way you can chose which phase you want to draw to. Making custom layers increases the difficulty in supporting the code over time though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121998#M3209</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-06-20T12:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121999#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Alex, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My original implementation was using the foreground drawing method you describe, but there is no way to only redraw some of the items-- all foreground items must be redrawn.&amp;nbsp; I need to redraw only the items (polylines) that changed, which was my original reason for posting.&amp;nbsp; I tried using esriViewGraphics, but had no luck getting that to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With my most recent attempts I am using a custom layer subclassed from BaseCustomLayer.&amp;nbsp; WIth this approach, no matter what draw phase parameter I provide to PartialRefresh(), my Draw() method override only gets invoked with a phase of esriDPGeography (which, I should note is actually a different enumeration type than is passed to PartialRefresh).&amp;nbsp; Neverthelss, according to ESRI documentation in my previous link, I should be able to refresh only the layer object passed to PartialRefresh.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found these posts of others having similar PartialRefresh problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/24958"&gt;http://forums.arcgis.com/threads/24958&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=180719"&gt;http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=180719&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on suggestions in the Steven Dunn thread, I was able to make some improvements but its still not working correctly.&amp;nbsp; Draw() is now called on each of my layers independenty, but about 1/2&amp;nbsp; the time the the previous layer contents are left on the map (not removed).&amp;nbsp; Also, about once a second, it appears the entire map frame is repainted without ever needing to calling my layer's draw method... This is actually worse than redrawing all my layers since the entire map repaints, not just my layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, still working on it...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polyline-drawing/m-p/121999#M3210</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2011-06-20T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

