<?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 Accessing the End Points of a Polyline Segment in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150889#M3902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems so easy in theory, but I can't seem to find out how to get the end points of a polyline segment / polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a selected polyline 'pLineF', type esriGeometryPolyline, for which I want to know the start and end points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been able to get at the extent (bounding rectangle) by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pLineF.Shape.Envelope (as an IEnvelope)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried using pointCollections but cannot seem to get the code right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need code, if you have any comments please, I just need a push in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 17:33:47 GMT</pubDate>
    <dc:creator>TomGiles</dc:creator>
    <dc:date>2010-12-14T17:33:47Z</dc:date>
    <item>
      <title>Accessing the End Points of a Polyline Segment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150889#M3902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems so easy in theory, but I can't seem to find out how to get the end points of a polyline segment / polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a selected polyline 'pLineF', type esriGeometryPolyline, for which I want to know the start and end points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been able to get at the extent (bounding rectangle) by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pLineF.Shape.Envelope (as an IEnvelope)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried using pointCollections but cannot seem to get the code right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need code, if you have any comments please, I just need a push in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150889#M3902</guid>
      <dc:creator>TomGiles</dc:creator>
      <dc:date>2010-12-14T17:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the End Points of a Polyline Segment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150890#M3903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you have an IFeature reference so just QI to IPolyline.&amp;nbsp; Use IPolyline.FromPoint and IPolyline.ToPoint.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:55:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150890#M3903</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-12-14T17:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the End Points of a Polyline Segment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150891#M3904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick reply Neil.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Believe it or not - and I don't even want to post this here - when I originally tried the [ipolyline] = [ifeature] 'QI' I forgot the .Shape ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for others:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'where pFeat is an IFeature:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPolyline As IPolyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pPolyline = pFeat.Shape 'QI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then access pPolyline.FromPoint, etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Really easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again Neil.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 14:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-the-end-points-of-a-polyline-segment/m-p/150891#M3904</guid>
      <dc:creator>TomGiles</dc:creator>
      <dc:date>2010-12-15T14:26:00Z</dc:date>
    </item>
  </channel>
</rss>

