<?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 Can we get the segment type from Polyline2d and Polyline3d using C# ? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/can-we-get-the-segment-type-from-polyline2d-and-polyline3d-using/m-p/5478152#M342643</link>
    <description>&lt;P&gt;In Polyline, we have the &lt;STRONG&gt;GetSegmentType&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static void GetPolylineSegment(Polyline pline){&lt;BR /&gt;   Point3d p3d;&lt;BR /&gt;   SegmentType stype;
&amp;nbsp; &amp;nbsp;int vn = pline.NumberOfVertices;
&amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; vn; i++){
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;p3d = pline.GetPoint3dAt(i);&lt;BR /&gt;      segmentType = pline.GetSegmentType((int)pline.GetParameterAtPoint(p3d));&lt;BR /&gt;      if (segmentType == SegmentType.Arc) {&lt;BR /&gt;         // find an arc segment&lt;BR /&gt;      }&lt;BR /&gt;      else if (segmentType == SegmentType.Line) {&lt;BR /&gt;         // find a line segment&lt;BR /&gt;      }&lt;BR /&gt;      // ...
&amp;nbsp; &amp;nbsp;}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Polyline2d and Polyline3d doesn't have the same method, so is there a workaround to deal with ?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 09:53:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-22T09:53:02Z</dc:date>
  </channel>
</rss>

