<?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 How to simplify polylines made of many vertices into single arcs or lines? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13697468#M164810</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;In my drawing, I often receive polylines that are broken into many vertices even though:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Some segments form a perfect arc (all with the same radius)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Others are straight lines but made of multiple points&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd like to &lt;STRONG&gt;simplify&lt;/STRONG&gt; such polylines by:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Converting faceted arcs (with consistent radius) into a single arc segment&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Converting multi-vertex straight lines into a simple two-point polyline&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is mainly to clean up survey and block geometry where polylines have unnecessary vertices.&lt;/P&gt;&lt;P&gt;Is there a built-in method (like pellise), or any available plugins for this in AutoCAD? if not can you guys help me with a lisp ?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javeed4teen_0-1750847179059.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1546526i1AE8BB1A1844C50F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javeed4teen_0-1750847179059.png" alt="javeed4teen_0-1750847179059.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 10:26:51 GMT</pubDate>
    <dc:creator>javeed4teen</dc:creator>
    <dc:date>2025-06-25T10:26:51Z</dc:date>
    <item>
      <title>How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13697468#M164810</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;In my drawing, I often receive polylines that are broken into many vertices even though:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Some segments form a perfect arc (all with the same radius)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Others are straight lines but made of multiple points&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd like to &lt;STRONG&gt;simplify&lt;/STRONG&gt; such polylines by:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Converting faceted arcs (with consistent radius) into a single arc segment&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Converting multi-vertex straight lines into a simple two-point polyline&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is mainly to clean up survey and block geometry where polylines have unnecessary vertices.&lt;/P&gt;&lt;P&gt;Is there a built-in method (like pellise), or any available plugins for this in AutoCAD? if not can you guys help me with a lisp ?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="javeed4teen_0-1750847179059.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1546526i1AE8BB1A1844C50F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="javeed4teen_0-1750847179059.png" alt="javeed4teen_0-1750847179059.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 10:26:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13697468#M164810</guid>
      <dc:creator>javeed4teen</dc:creator>
      <dc:date>2025-06-25T10:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13698159#M164832</link>
      <description>&lt;P&gt;It won't help with the arc thing, but to remove intermediate vertices along collinear stretches, you can use the &lt;STRONG&gt;PLD&lt;/STRONG&gt; command in &lt;STRONG&gt;PLDIET.lsp&lt;/STRONG&gt;, &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/awesome-lisp-gives-different-results-of-multiple-pc-s/m-p/12669927/highlight/true#M15938" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; It asks for a maximum distance to straighten [i.e. to remove intermediate vertices in], but it removes &lt;EM&gt;collinear&lt;/EM&gt; intermediate vertices regardless of that setting.&amp;nbsp;&amp;nbsp;And it asks for a maximum amount of change in direction to allow removing a vertex, so if you make that tiny enough, it shouldn't bother the arc-ish parts by making them even kinkier.&lt;/P&gt;
&lt;P&gt;But to turn those into actual arc segments is something that I think has been asked before, though I don't recall whether there's a solution out there -- do some Searching.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 17:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13698159#M164832</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-25T17:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13698913#M164846</link>
      <description>&lt;P&gt;This may be what&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;was thinking of. Not tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/convert-polyline-line-segments-to-arc-segments/td-p/5813285" target="_blank" rel="noopener"&gt;Solved: convert polyline line segments to arc segments? - Autodesk Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 06:50:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13698913#M164846</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-06-26T06:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13704494#M164909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17577461"&gt;@javeed4teen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;I'd like to &lt;STRONG&gt;simplify&lt;/STRONG&gt; such polylines by:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Converting faceted arcs (with consistent radius) into a single arc segment&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I've been wondering how a routine could determine that a series of arc segments are of constant radius and center, since neither of those pieces of information is stored in the Polyline's entity data.&amp;nbsp; It would need to involve bulge factors in combination with segment lengths in some kind of calculation.&amp;nbsp; It would be easier if the segments were all the same length as well as radius and center, but that's clearly not the case in your image.&amp;nbsp; Just to confirm -- do you mean only series of &lt;EM&gt;all arc&lt;/EM&gt; segments?&amp;nbsp; In your image, the longest segment in the outer "curve" looks like an &lt;EM&gt;arc&lt;/EM&gt; segment, but the next one to its right looks like it could be a &lt;EM&gt;line&lt;/EM&gt; segment.&amp;nbsp; [If it could, that would spoil any idea I have had for how to go about it.]&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 17:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13704494#M164909</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-06-30T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13705019#M164923</link>
      <description>&lt;P&gt;Maybe like this, take 1st 3 points draw an arc get center point draw a circle, does 4th point lie on the circle, does the 5th 6th and so on when "NO" draw an arc, then start again. The obvious is that straights in same direction will have same angle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1751331688504.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1548139i3CB68A77DC978602/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1751331688504.png" alt="SeaHaven_0-1751331688504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just used osnap near to make the points on an arc, as you would use vertices for comparisons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of actual code need real world dwg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 01:05:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13705019#M164923</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-07-01T01:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to simplify polylines made of many vertices into single arcs or lines?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13714627#M165083</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17577461"&gt;@javeed4teen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this one 19th custom command &lt;STRONG&gt;&lt;EM&gt;clean_pline&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 20:44:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-simplify-polylines-made-of-many-vertices-into-single-arcs/m-p/13714627#M165083</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-07-07T20:44:26Z</dc:date>
    </item>
  </channel>
</rss>

