<?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: StartPoint od polyline in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721899#M64683</link>
    <description>&lt;P&gt;I tried without success:&lt;/P&gt;&lt;P&gt;Point3d nextpoint = lwp.GetArcSegmentAt(1).StartPoint;&lt;BR /&gt;lwp.SetPointAt(0, new Point2d(nextpoint.X, nextpoint.Y));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because the polyline change shape.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2010 13:47:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-20T13:47:11Z</dc:date>
    <item>
      <title>StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2720823#M64679</link>
      <description>&lt;P&gt;Is possible to change the startpoint of a polyline?&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;Polyline lwp = obj as Polyline;&lt;/P&gt;&lt;P&gt;int vn = lwp.NumberOfVertices;&lt;BR /&gt;for (int i = 0; i &amp;lt; vn; i++)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SegmentType sg = lwp.GetSegmentType(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;lwp.StartPoint = lwp.GetArcSegmentAt(1).StartPoint;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2010 15:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2720823#M64679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-19T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2720857#M64680</link>
      <description>&lt;P&gt;You can modify the first vertex just as you would any vertex.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2010 15:45:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2720857#M64680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-19T15:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721577#M64681</link>
      <description>&lt;P&gt;Please, could you give me an example?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2010 06:02:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721577#M64681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T06:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721807#M64682</link>
      <description>&lt;P&gt;You call the PolyLine's SetPointAt() method and pass it the index of&lt;/P&gt;&lt;P&gt;the vertex and the new coordinate.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721807#M64682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T12:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721899#M64683</link>
      <description>&lt;P&gt;I tried without success:&lt;/P&gt;&lt;P&gt;Point3d nextpoint = lwp.GetArcSegmentAt(1).StartPoint;&lt;BR /&gt;lwp.SetPointAt(0, new Point2d(nextpoint.X, nextpoint.Y));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because the polyline change shape.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2010 13:47:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2721899#M64683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T13:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2722543#M64684</link>
      <description>&lt;P&gt;You're trying to set the start point to the second vertex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to explain in more detail what you're trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2010 20:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2722543#M64684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2722847#M64685</link>
      <description>&lt;P&gt;&lt;FONT size="1"&gt;I've a closed polyline composed by some Arc and Line as in 1.dwg&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;This polyline has a startpoint at 41.4033981995461,46.6236763815663 (startpoint of the first segment)&amp;nbsp;that I need to change in 43.8777100135197,46.8401506153171 (startpoint of the second segment) before cicllyng with:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;int vn = lwp.NumberOfVertices;&lt;BR /&gt;for (int i = 0; i &amp;lt; vn; i++)&lt;BR /&gt;{&lt;BR /&gt;SegmentType sg = lwp.GetSegmentType(i);&lt;BR /&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 08:26:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2722847#M64685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-21T08:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723237#M64686</link>
      <description>&lt;P&gt;Isn't it obvious that if you want to change the start point of the first&lt;/P&gt;&lt;P&gt;segment to be the start point of the second segment, what you&lt;/P&gt;&lt;P&gt;actually are doing is deleting the first segment/vertex?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 15:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723237#M64686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-21T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723327#M64687</link>
      <description>&lt;P&gt;I only want to change the first segment of the polyline.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 16:09:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723327#M64687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-21T16:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723591#M64688</link>
      <description>&lt;P&gt;Sorry, I really can't figure out what it is you're trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps posting a file with the 'before' and 'after' might help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:29:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2723591#M64688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-21T18:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2724093#M64689</link>
      <description>&lt;P&gt;As attached files before.dwg and after.dwg the first segment of the polyline is different.&lt;/P&gt;&lt;P&gt;My question is: how can I&amp;nbsp;do this&amp;nbsp;programmatically in autocad .net?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2010 07:05:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2724093#M64689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-22T07:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2724489#M64690</link>
      <description>&lt;P&gt;The only difference I see is that the first vertex is offset by one&lt;/P&gt;&lt;P&gt;vertex in one of the two polylines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this via the API, you either delete the last vertex and&lt;/P&gt;&lt;P&gt;insert it at the start, or delete the first vertex and insert it&lt;/P&gt;&lt;P&gt;at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2010 15:03:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2724489#M64690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-22T15:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2731941#M64691</link>
      <description>&lt;P&gt;I don't understand, because I think the last vertex is also the first.&lt;/P&gt;&lt;P&gt;Please, could you explain it with code?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2010 09:00:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2731941#M64691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-30T09:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint od polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2731983#M64692</link>
      <description>&lt;P&gt;No, the last vertex is not the first vertex. If a polylline is closed, it&lt;/P&gt;&lt;P&gt;merely means that there is a segment connecting the first and last&lt;/P&gt;&lt;P&gt;vertices. Perhaps you are confusing vertices with the segments&lt;/P&gt;&lt;P&gt;that connect them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I don't have time to write the code for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:51:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2731983#M64692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-30T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: StartPoint of polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2734435#M64693</link>
      <description>&lt;P&gt;Ok, now I understand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int vn = lwp.NumberOfVertices;&lt;/P&gt;&lt;P&gt;lwp.RemoveVertexAt(0);&lt;BR /&gt;lwp.AddVertexAt(vn - 1, new Point2d(X, Y), 0, 0, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Point2d(X, Y) is the StartPoint of the Segment at index = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2010 13:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/startpoint-od-polyline/m-p/2734435#M64693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-03T13:03:21Z</dc:date>
    </item>
  </channel>
</rss>

