<?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 Add line feature to polyline feature class - VB/VBA in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456506#M12383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am pulling my hair out on this one.&amp;nbsp; I have a polyline feature class and two points in a point shapefile.&amp;nbsp; I have the points set as IPoints in code.&amp;nbsp; I have the polyline set as an IPolyline.&amp;nbsp; I defined an IPath using the two IPoints as from and to points.&amp;nbsp; I have tried using the .AddGeometry function to add the two points as a path to my existing polyline layer with no luck.&amp;nbsp; Maybe I am not setting the feature class correctly to accept the geometry.&amp;nbsp; Maybe there is a better way?&amp;nbsp; Can someone please help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wood&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 02:29:35 GMT</pubDate>
    <dc:creator>WoodyFields</dc:creator>
    <dc:date>2011-04-15T02:29:35Z</dc:date>
    <item>
      <title>Add line feature to polyline feature class - VB/VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456506#M12383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am pulling my hair out on this one.&amp;nbsp; I have a polyline feature class and two points in a point shapefile.&amp;nbsp; I have the points set as IPoints in code.&amp;nbsp; I have the polyline set as an IPolyline.&amp;nbsp; I defined an IPath using the two IPoints as from and to points.&amp;nbsp; I have tried using the .AddGeometry function to add the two points as a path to my existing polyline layer with no luck.&amp;nbsp; Maybe I am not setting the feature class correctly to accept the geometry.&amp;nbsp; Maybe there is a better way?&amp;nbsp; Can someone please help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wood&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 02:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456506#M12383</guid>
      <dc:creator>WoodyFields</dc:creator>
      <dc:date>2011-04-15T02:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add line feature to polyline feature class - VB/VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456507#M12384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can only add high level geometries to feature classes.&amp;nbsp; A path isn't a high level geometry.&amp;nbsp; A line feature class can only store polyline geometries.&amp;nbsp; You need to be creating a new polyline geometry and using that to set the geometry of a new feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim polyline As IPolyline = new Polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;polyline.FromPoint = onePoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;polyline.ToPoint = otherPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim feature As IFeature = featureClass.CreateFeature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Shape = polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Store&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 12:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456507#M12384</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-04-15T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add line feature to polyline feature class - VB/VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456508#M12385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil!&amp;nbsp; That did the trick and fits into my code so much nicer.&amp;nbsp; Any way I can give you "he is awesome points" for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-line-feature-to-polyline-feature-class-vb-vba/m-p/456508#M12385</guid>
      <dc:creator>WoodyFields</dc:creator>
      <dc:date>2011-04-15T15:37:40Z</dc:date>
    </item>
  </channel>
</rss>

