<?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 Need to split a polyline into equal number arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-split-a-polyline-into-equal-number/m-p/108163#M2827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with a problem. I need to split a polyline into equal number of parts using c# arcobjects where the user will enter the number of parts to split the polyline into.&lt;/P&gt;&lt;P&gt;I need to do this using arcobjects as I have a huge file. Does anyone have a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2017 10:58:24 GMT</pubDate>
    <dc:creator>NigelDsouza1</dc:creator>
    <dc:date>2017-06-15T10:58:24Z</dc:date>
    <item>
      <title>Need to split a polyline into equal number arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-split-a-polyline-into-equal-number/m-p/108163#M2827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with a problem. I need to split a polyline into equal number of parts using c# arcobjects where the user will enter the number of parts to split the polyline into.&lt;/P&gt;&lt;P&gt;I need to do this using arcobjects as I have a huge file. Does anyone have a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 10:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-split-a-polyline-into-equal-number/m-p/108163#M2827</guid>
      <dc:creator>NigelDsouza1</dc:creator>
      <dc:date>2017-06-15T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to split a polyline into equal number arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-split-a-polyline-into-equal-number/m-p/108164#M2828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a&amp;nbsp;few ways you can do this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IFeatureEdit_Split.htm"&gt;IFeatureEdit.Split&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The idea is you take a polyline, work out the split distance based on how many parts you need, then create a point down the line with &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve_QueryPoint.htm"&gt;ICurve.QueryPoint&lt;/A&gt;. Feed that point into the split.&amp;nbsp;As this creates new features,&amp;nbsp;you have to use the next split point to do a spatial search to find the underlying polyline it created, then keep iterating.&amp;nbsp;(alternatively use &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IFeatureEdit2_SplitWithUpdate.htm"&gt;IFeatureEdit2.SplitWithUpdate&lt;/A&gt;&amp;nbsp;for the split)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve_GetSubcurve.htm"&gt;ICurve.GetSubcurve&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This extracts portions of a polyline based on distance. Similar to above you have to first work out the distances with QueryPoint, but then create features with the extracted geometry (and attributes) and delete the original one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 19:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-split-a-polyline-into-equal-number/m-p/108164#M2828</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-06-15T19:41:49Z</dc:date>
    </item>
  </channel>
</rss>

