<?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: AutoCAD - Divide line with predefined gap in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/13378789#M41058</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9129093"&gt;@curtstrobehn&lt;/a&gt;&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. open a new thread&lt;/P&gt;&lt;P&gt;2. does all selected objects will be divided equally?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 08:35:48 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2025-03-19T08:35:48Z</dc:date>
    <item>
      <title>AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11420954#M41043</link>
      <description>&lt;P&gt;Hi, everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way to divide a line in Autocad with a predefined gap. For example, I have a line with 10 meters that I have to split into 10 equal parts, so each part will have 1 meter. But, these parts must have a gap between them of 0,2 meters&lt;SPAN&gt;, therefore the correct measure of each part will be 0,82 meters.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Example.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1115621i54AD1CD642441440/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Example.jpg" alt="Example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I usually do this manually, but is there a way to make this with a command? Something like: select the line, type the gap of 0,2, set the number of divisions needed, and then the division points appear automatically?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry if this has been asked before, I have searched the forum and I could not find a similar question.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FFCC00"&gt;[ The subject line of this post has been edited to include the product name by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12851358"&gt;@handjonathan&lt;/a&gt; ]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 14:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11420954#M41043</guid>
      <dc:creator>rafaelcmeyer</dc:creator>
      <dc:date>2022-09-14T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11420999#M41044</link>
      <description>&lt;P&gt;That would not be difficult with an AutoLisp routine, but more detail please.&amp;nbsp; What are you starting with?&amp;nbsp; In the image it's clearly not a Line as AutoCAD uses the word.&amp;nbsp; Is it a rectangle [a closed 4-segment Polyline]?&amp;nbsp; A single-line-segment Polyline with width?&amp;nbsp; Something else?&amp;nbsp; And by "divide" do you mean to just place things along it [as the DIVIDE command puts Points], or since you use the word "gap," actually divide it [break it up] into separate pieces?&amp;nbsp; If placing things along it, what are they?&amp;nbsp; Is it always a straight open-ended thing you want to do this to, or might it sometimes be something curved [e.g. an Arc] or even closed [e.g. a Circle]?&amp;nbsp; Etc.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 16:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11420999#M41044</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-09-14T16:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421111#M41045</link>
      <description>&lt;P&gt;What if you created a BLOCK called 2M that has a LINE segment = 0,2M with insert point as Midpoint of the LINE at&amp;nbsp;same orientation as the LINE you want to DIVIDE?&lt;/P&gt;&lt;P&gt;Then use AutoCAD's built-in DIVIDE command, choose the LINE and specify Block 2M, Align with object, then enter 10 as number of segments. AutoCAD will DIVIDE the LINE using the 0,2M Block and you can now osnap to the end points of the 0,2M line segment to dimension.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 15:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421111#M41045</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2022-09-14T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421162#M41046</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What if you created a BLOCK called 2M that has a LINE segment = 0,2M with insert point as Midpoint of the LINE at&amp;nbsp;same orientation as the LINE you want to DIVIDE?&lt;/P&gt;
&lt;P&gt;Then use AutoCAD's built-in DIVIDE command. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will leave the end segments longer than the intermediate ones, for example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1663171462654.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1115697i3B181AFB54D977B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1663171462654.png" alt="Kent1Cooper_0-1663171462654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 16:04:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421162#M41046</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-09-14T16:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421265#M41047</link>
      <description>&lt;P&gt;In simplest terms, for any finite object with linearity, open or closed, to place Point objects along it at the ends of the "gaps" [but without causing actual gaps]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:SWG ; = Subdivide With Gaps
  (/ ent gap segs len efflen gaps seg dst)
  (setq
    ent (car (entsel "\nObject to Subdivide With Gaps: "))
    gap (getdist "\nGap width: ")
    segs (getint "\nNumber of subdivisions: ")
    len (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))
    efflen (- len (* gap (setq gaps (- segs (if (vlax-curve-isClosed ent) 0 1)))))
    seg (/ efflen segs)
    dst 0
  )
  (setvar 'pdmode 35)
  (repeat gaps
    (command
      "_.point" "_non" (vlax-curve-getPointAtDist ent (setq dst (+ dst seg)))
      "_.point" "_non" (vlax-curve-getPointAtDist ent (setq dst (+ dst gap)))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does this kind of thing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1663172833091.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1115706i233C5C852298547C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1663172833091.png" alt="Kent1Cooper_0-1663172833091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It could be made to:&lt;BR /&gt;1.&amp;nbsp; Break the object instead of or in addition to placing Points;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Verify that what you picked is appropriate [no Rays, Xlines, Text, Blocks, etc.];&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Remember your choices of gap size and number of segments, to offer as defaults the next time;&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; Save the PDMODE setting when you start, and restore it afterwards;&lt;/P&gt;
&lt;P&gt;5.&amp;nbsp; Allow selection of multiple objects to process all in the same way;&lt;/P&gt;
&lt;P&gt;6.&amp;nbsp; Wrap its operations in Undo Begin/End so Undo doesn't remove just one Point at a time;&lt;/P&gt;
&lt;P&gt;7.&amp;nbsp; Put the Points on a specified Layer [and make it if it doesn't exist], or on the Layer of the object;&lt;/P&gt;
&lt;P&gt;8.&amp;nbsp; Place other kinds of things, such as Blocks, little perpendicular Lines that you can Trim between, etc.;&lt;/P&gt;
&lt;P&gt;9.&amp;nbsp; Have an *error* handler to ensure resetting of anything that was changed.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 16:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421265#M41047</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-09-14T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421372#M41048</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your quick response. Yes, the image that I posted was not a line, but this is exactly what I was looking for. I never coded anything in my life, so many thanks for providing the AutoLisp routine too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;, thanks for your contribution too.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:25:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421372#M41048</guid>
      <dc:creator>rafaelcmeyer</dc:creator>
      <dc:date>2022-09-14T17:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421613#M41049</link>
      <description>&lt;P&gt;So I would typically extend both ends of the object in this case a LINE half distance of the gap and then DIVIDE.&lt;/P&gt;&lt;P&gt;But of course your custom code offers a lot more advantages.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paulli_apa_0-1663181975783.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1115795i46CD2BE481181E5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paulli_apa_0-1663181975783.png" alt="paulli_apa_0-1663181975783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/11421613#M41049</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2022-09-14T18:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994176#M41050</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you please make this lisp so that it should deduct gap length from beginning and end of line and apply function on remaining part.&lt;/P&gt;&lt;P&gt;Suppose length of line is 10 units, we enter gap value 1 unit then it should deduct 1 from start and 1 from end of line and apply function in remaining part which will be 8.&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:SWG ; = Subdivide With Gaps
  (/ ent gap segs len efflen gaps seg dst)
  (setq
    ent (car (entsel "\nObject to Subdivide With Gaps: "))
    gap (getdist "\nGap width: ")
    segs (getint "\nNumber of subdivisions: ")
    len (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))
    efflen (- len (* gap (setq gaps (- segs (if (vlax-curve-isClosed ent) 0 1)))))
    seg (/ efflen segs)
    dst 0
  )
  (setvar 'pdmode 35)
  (repeat gaps
    (command
      "_.point" "_non" (vlax-curve-getPointAtDist ent (setq dst (+ dst seg)))
      "_.point" "_non" (vlax-curve-getPointAtDist ent (setq dst (+ dst gap)))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 12:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994176#M41050</guid>
      <dc:creator>saqib_tipa</dc:creator>
      <dc:date>2024-09-01T12:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994500#M41051</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14578040"&gt;@saqib_tipa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;... make this lisp so that it should deduct gap length from beginning and end of line and apply function on remaining part.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I understand correctly, still placing Points only but not changing the selected object itself, I think this does what you're asking [&lt;EM&gt;minimally tested&lt;/EM&gt;]:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(vl-load-com)
(defun C:SWG ; = Subdivide With Gaps
  (/ ent gap segs len efflen gaps seg dst)
  (setq
    ent (car (entsel "\nObject to Subdivide With Gaps: "))
    gap (getdist "\nGap width: ")
    segs (getint "\nNumber of subdivisions: ")
    len (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))
    efflen (- len (* gap (+ (setq gaps (- segs (if (vlax-curve-isClosed ent) 0 1))) 2)))
    seg (/ efflen segs)
    dst 0
  )
  (setvar 'pdmode 35)
  (repeat gaps
    (command
      "_.point" "_non" (vlax-curve-getPointAtDist ent (+ gap (setq dst (+ dst seg))))
      "_.point" "_non" (vlax-curve-getPointAtDist ent (+ gap (setq dst (+ dst gap))))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;It just takes two more gaps' worth off the effective length to work with, and places each Point one gap's worth farther along the object than in the original.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 18:18:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994500#M41051</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-01T18:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994544#M41052</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. Yes, this is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gap which it makes in the start and in the end of line these two points are also required. How to place these two points also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 18:59:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994544#M41052</guid>
      <dc:creator>saqib_tipa</dc:creator>
      <dc:date>2024-09-01T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994788#M41053</link>
      <description>&lt;P&gt;This is gapping in two directions example, can you post a sample dwg so can see what is required a before and after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 00:17:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12994788#M41053</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-09-02T00:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995250#M41054</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where is the code.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 07:26:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995250#M41054</guid>
      <dc:creator>saqib_tipa</dc:creator>
      <dc:date>2024-09-02T07:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995516#M41055</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14578040"&gt;@saqib_tipa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;....Gap which it makes in the start and in the end of line these two points are also required. ...&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try adding &lt;FONT color="#0000FF"&gt;this&lt;/FONT&gt; [untested]:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#999999"&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#808080"&gt;(setvar 'pdmode 35)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#0000FF"&gt;(command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; "_.point" "_non" (vlax-curve-getPointAtDist ent gap)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; "_.point" "_non" (vlax-curve-getPointAtDist ent (- len gap))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; )&lt;/FONT&gt;&lt;FONT color="#999999"&gt;; command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#999999"&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#808080"&gt;(repeat gaps&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;....&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 10:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995516#M41055</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-09-02T10:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995582#M41056</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, this is working. It is now adding those two points also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Try adding &lt;FONT color="#0000FF"&gt;this&lt;/FONT&gt; [untested]:&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#999999"&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#808080"&gt;(setvar 'pdmode 35)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#0000FF"&gt;(command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; "_.point" "_non" (vlax-curve-getPointAtDist ent gap)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; "_.point" "_non" (vlax-curve-getPointAtDist ent (- len gap))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; )&lt;/FONT&gt;&lt;FONT color="#999999"&gt;; command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#999999"&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#808080"&gt;(repeat gaps&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:21:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/12995582#M41056</guid>
      <dc:creator>saqib_tipa</dc:creator>
      <dc:date>2024-09-02T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/13378782#M41057</link>
      <description>&lt;P&gt;Wondering if you can help me. trying to create divide command, pause to select arc, circle, line or polyline. Insert block "c-hair4", pause for number divided&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 08:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/13378782#M41057</guid>
      <dc:creator>curtstrobehn</dc:creator>
      <dc:date>2025-03-19T08:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD - Divide line with predefined gap</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/13378789#M41058</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9129093"&gt;@curtstrobehn&lt;/a&gt;&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. open a new thread&lt;/P&gt;&lt;P&gt;2. does all selected objects will be divided equally?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 08:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-divide-line-with-predefined-gap/m-p/13378789#M41058</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-03-19T08:35:48Z</dc:date>
    </item>
  </channel>
</rss>

