<?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: How to break multiple polylines at specific length at the same time? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987976#M180371</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... Does anybody know of a lisp or command that would all to me to select all the polylines at once, enter 100, and then it break them all every 100 from each polyline's orgin? ....&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In very simplest terms, and minimally tested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun C:BPS ; = Break Polyline(s) into Segments
  (/ len bpsl plss n pl)
  (defun len () (vlax-curve-getDistAtParam pl (vlax-curve-getEndParam pl)))
  (setvar 'osmode 0)
  (setq bpsl (getdist "\nSegment length to Break Polylines into: "))
  (if (setq plss (ssget ":L" '((0 . "*POLYLINE"))))
    (repeat (setq n (sslength plss))
      (setq pl (ssname plss (setq n (1- n))))
      (while (&amp;gt; (len) bpsl)
        (command "_.break" pl (vlax-curve-getPointAtDist pl bpsl) "@")
        (setq pl (entlast))
      ); while
    ); repeat
  ); if
  (princ)
); defun&lt;/PRE&gt;
&lt;P&gt;No error handling yet, no saving the Osnap setting for reset, no &amp;lt;all that other stuff&amp;gt;, but it seems to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 17:24:04 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2018-05-08T17:24:04Z</dc:date>
    <item>
      <title>How to break multiple polylines at specific length at the same time?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987454#M180369</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple polylines, more then 4000, and I want to break them all every 100 feet. Does anybody know of a lisp or command that would all to me to select all the polylines at once, enter 100, and then it break them all every 100 from each polyline's orgin? I can find commands that allow me to select one polyline at a time and enter 100, but I want to&amp;nbsp;break all polylines at the same time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 14:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987454#M180369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to break multiple polylines at specific length at the same time?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987841#M180370</link>
      <description>&lt;P&gt;Lee Mac has a program, "segs.lsp" that will allow you to pick multiple objects and divide into equal segments.&lt;BR /&gt;If all your polylines are the same length, great.&lt;BR /&gt;If not, it will still take some individual selection of same length polylines and determination of how many segments to divide to give you 100' segments.&lt;BR /&gt;The program may give you the basis you need to devise your own program to accomplish what you desire.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 16:32:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987841#M180370</guid>
      <dc:creator>deke01</dc:creator>
      <dc:date>2018-05-08T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to break multiple polylines at specific length at the same time?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987976#M180371</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... Does anybody know of a lisp or command that would all to me to select all the polylines at once, enter 100, and then it break them all every 100 from each polyline's orgin? ....&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In very simplest terms, and minimally tested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun C:BPS ; = Break Polyline(s) into Segments
  (/ len bpsl plss n pl)
  (defun len () (vlax-curve-getDistAtParam pl (vlax-curve-getEndParam pl)))
  (setvar 'osmode 0)
  (setq bpsl (getdist "\nSegment length to Break Polylines into: "))
  (if (setq plss (ssget ":L" '((0 . "*POLYLINE"))))
    (repeat (setq n (sslength plss))
      (setq pl (ssname plss (setq n (1- n))))
      (while (&amp;gt; (len) bpsl)
        (command "_.break" pl (vlax-curve-getPointAtDist pl bpsl) "@")
        (setq pl (entlast))
      ); while
    ); repeat
  ); if
  (princ)
); defun&lt;/PRE&gt;
&lt;P&gt;No error handling yet, no saving the Osnap setting for reset, no &amp;lt;all that other stuff&amp;gt;, but it seems to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 17:24:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987976#M180371</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-05-08T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to break multiple polylines at specific length at the same time?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/11763746#M180372</link>
      <description>&lt;P&gt;So useful command thank a lot bro.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 02:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/11763746#M180372</guid>
      <dc:creator>naylin.oo</dc:creator>
      <dc:date>2023-02-18T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to break multiple polylines at specific length at the same time?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/11764279#M180373</link>
      <description>&lt;P&gt;Or MMeasure (multiple-measure) - see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cadforum.cz/en/qaID.asp?tip=3644" target="_blank"&gt;https://www.cadforum.cz/en/qaID.asp?tip=3644&lt;/A&gt;&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="DivBreak.gif" style="width: 680px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178280i9FA617DCCC71CF7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="DivBreak.gif" alt="DivBreak.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.arkance-systems.cz" target="_blank"&gt;www.arkance-systems.cz&lt;/A&gt;&amp;nbsp; -&amp;nbsp; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 13:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/11764279#M180373</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2023-02-18T13:44:01Z</dc:date>
    </item>
  </channel>
</rss>

