<?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: Changing the &amp;quot;FILLET&amp;quot; radius of a polyline in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447004#M6200</link>
    <description>&lt;P&gt;I made a mistake in the second argument of the "IntersectWith" method. Instead of using "Intersect.ExtendBoth," I had used "OnBothOperands." Here is an excerpt of the corrected code that works well for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;for (int i = 1; i &amp;lt; tempPline.NumberOfVertices-1; i++)
                {

                    if (tempPline.GetBulgeAt(i)!=0)
                    {
                        Line L1 = new Line(tempPline.GetPoint3dAt(i-1), tempPline.GetPoint3dAt(i));
                        Line L2 = new Line(tempPline.GetPoint3dAt(i+1), tempPline.GetPoint3dAt(i+2));

                        Point3dCollection intPoints = new Point3dCollection();
                        L1.IntersectWith(L2, Intersect.ExtendBoth, intPoints, IntPtr.Zero, IntPtr.Zero);

                        if (intPoints.Count&amp;gt;0)
                        {
                            lstPts.Add(intPoints[0]); // Add to list
                        }
                    }

                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Dec 2023 21:43:19 GMT</pubDate>
    <dc:creator>youssefGC</dc:creator>
    <dc:date>2023-12-17T21:43:19Z</dc:date>
    <item>
      <title>Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446375#M6196</link>
      <description>&lt;P&gt;Hello Forums,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I am working on a function that allows modifying the fillet radius between two segments of a polyline. For instance, if the current radius is 120 (image 1), we want to change it to a value of 250 (image 3).&lt;/P&gt;&lt;P&gt;So, initially, my idea is to transform the polyline into one with broken lines (no fillet / image 2) and then apply "FILLET" with the new radius value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 584px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1305624i2FEC3EB953376B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 578px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1305625iA3C6BDA9243D03F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 601px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1305626i7A19DA532594DFAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem I found is in the evaluation of the intersection vertex (point A in the photo).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 527px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1305627iC145D88924DFC12A/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 10:55:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446375#M6196</guid>
      <dc:creator>youssefGC</dc:creator>
      <dc:date>2023-12-17T10:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446454#M6197</link>
      <description>&lt;P&gt;You can use &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Polyline_GetLineSegment2dAt_int" target="_blank" rel="noopener"&gt;Polyline.GetLineSegment2dAt()&lt;/A&gt; to get the two adjacent line segments and then call &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-__OVERLOADED_IntersectWith_Autodesk_AutoCAD_Geometry_LinearEntity2d" target="_blank" rel="noopener"&gt;IntersectWith()&lt;/A&gt; to find the point you need.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 12:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446454#M6197</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2023-12-17T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446523#M6198</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;In my understanding, using "Polyline.GetLineSegment2dAt()" allows retrieving a line segment for a given starting index, and the endpoint is the next point in the polyline. If I apply this to retrieve both segments (I) and (II), I cannot perform the intersection since both segments require an extension.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 520px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1305661i83060644A28868CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 13:50:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446523#M6198</guid>
      <dc:creator>youssefGC</dc:creator>
      <dc:date>2023-12-17T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446893#M6199</link>
      <description>&lt;P&gt;You can create two instances of the &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_Geometry_Line2d" target="_blank" rel="noopener"&gt;Line2d&lt;/A&gt; class from the endpoints of the 2 line segments, and intersect those.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 19:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12446893#M6199</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2023-12-17T19:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447004#M6200</link>
      <description>&lt;P&gt;I made a mistake in the second argument of the "IntersectWith" method. Instead of using "Intersect.ExtendBoth," I had used "OnBothOperands." Here is an excerpt of the corrected code that works well for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;for (int i = 1; i &amp;lt; tempPline.NumberOfVertices-1; i++)
                {

                    if (tempPline.GetBulgeAt(i)!=0)
                    {
                        Line L1 = new Line(tempPline.GetPoint3dAt(i-1), tempPline.GetPoint3dAt(i));
                        Line L2 = new Line(tempPline.GetPoint3dAt(i+1), tempPline.GetPoint3dAt(i+2));

                        Point3dCollection intPoints = new Point3dCollection();
                        L1.IntersectWith(L2, Intersect.ExtendBoth, intPoints, IntPtr.Zero, IntPtr.Zero);

                        if (intPoints.Count&amp;gt;0)
                        {
                            lstPts.Add(intPoints[0]); // Add to list
                        }
                    }

                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 21:43:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447004#M6200</guid>
      <dc:creator>youssefGC</dc:creator>
      <dc:date>2023-12-17T21:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447224#M6201</link>
      <description>&lt;P&gt;Except that your code is creating new database objects and not disposing them or adding them to a database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also relies on an assumption that the polylines start and end with line segments rather than arc segments.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 01:48:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447224#M6201</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2023-12-18T01:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447676#M6202</link>
      <description>&lt;P&gt;The overall program precisely deletes the old polyline and adds the new one at the end.&lt;/P&gt;&lt;P&gt;The starting point is always a line (bulge = 0). I forgot to mention this detail in the original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 09:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12447676#M6202</guid>
      <dc:creator>youssefGC</dc:creator>
      <dc:date>2023-12-18T09:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the "FILLET" radius of a polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12448983#M6203</link>
      <description>&lt;P&gt;I was referring to the two line entities that your code creates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Line L1 = new Line(tempPline.GetPoint3dAt(i-1), tempPline.GetPoint3dAt(i));
Line L2 = new Line(tempPline.GetPoint3dAt(i+1), tempPline.GetPoint3dAt(i+2));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 20:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-quot-fillet-quot-radius-of-a-polyline/m-p/12448983#M6203</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2023-12-18T20:04:03Z</dc:date>
    </item>
  </channel>
</rss>

