<?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: Easiest way to Extend/Join the Line Automatically in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638217#M16405</link>
    <description>&lt;P&gt;Are you asking for an automated EXTEND lisp that goes around your entire file?&lt;/P&gt;
&lt;P&gt;Or just an instance like this that you manually select (or center on a display on screen)?&lt;/P&gt;
&lt;P&gt;Or... ?&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: -40px; top: -19.7882px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 13 Mar 2024 15:56:00 GMT</pubDate>
    <dc:creator>pendean</dc:creator>
    <dc:date>2024-03-13T15:56:00Z</dc:date>
    <item>
      <title>Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638087#M16404</link>
      <description>&lt;P&gt;Hello Forum!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been looking around and couldn't find a easy solution. If this one is a report, I'm terribly sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a canvas with silhouettes, and some of them have notches (green polyline). I want to merge them together, so we don't have gaps between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I would Extend easily, but it may happen to have multiple of them and I would be a tedious process. That's why I'm looking for a automatic process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I've tries PEDIT w/ Join &amp;amp; Fuzz but I was not able to join them correctly.&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="Silhouette.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1336650i177952B20DC10640/image-size/large?v=v2&amp;amp;px=999" role="button" title="Silhouette.png" alt="Silhouette.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance from the ACAD gurus will be greately appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: We're rocking the ACAD LT 2024. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 15:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638087#M16404</guid>
      <dc:creator>bogdan_marianJQ474</dc:creator>
      <dc:date>2024-03-13T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638217#M16405</link>
      <description>&lt;P&gt;Are you asking for an automated EXTEND lisp that goes around your entire file?&lt;/P&gt;
&lt;P&gt;Or just an instance like this that you manually select (or center on a display on screen)?&lt;/P&gt;
&lt;P&gt;Or... ?&lt;/P&gt;
&lt;DIV id="gtx-trans" style="position: absolute; left: -40px; top: -19.7882px;"&gt;
&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Mar 2024 15:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638217#M16405</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2024-03-13T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638230#M16406</link>
      <description>&lt;P&gt;Yup, any automated solution, not necesaarily via Extend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But a way to connect &amp;amp; intersect both green lines to the white one on the entire file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The canvas contains multiple example like this one, and going though each one indidvidually would take forever.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638230#M16406</guid>
      <dc:creator>bogdan_marianJQ474</dc:creator>
      <dc:date>2024-03-13T16:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638252#M16407</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15144996"&gt;@bogdan_marianJQ474&lt;/a&gt;&lt;BR /&gt;Please upload your sample dwg.&lt;BR /&gt;with a few canvas sample&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:11:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638252#M16407</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2024-03-13T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638284#M16408</link>
      <description>&lt;P&gt;Of course! No idea why it wasn't uploaded in the first post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A dwg as an example is added here. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 16:20:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12638284#M16408</guid>
      <dc:creator>eusuntbogdyE7CEK</dc:creator>
      <dc:date>2024-03-13T16:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12639344#M16409</link>
      <description>&lt;P&gt;Pretty sure this has been answered already, trying to find prior response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st step for me is that green lines are made as plines, then its pretty straight forward to extend to white pline using intersectwith to work out new end point. Yeah just found its all lines so need pline all objects 1st.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd method is offset white pline a small amount that your using as a test, can then use SSGET "F" to look for green lines and again intersectwith. I think that is what I did last time. Then lines or plines are ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Pedit Multiple Join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will look for code or some one else will post prior solution based on a TRIM or EXTEND choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intersect with pattern need 2nd and 4th points&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1710379644319.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1336867i8958E2DA04B9B193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1710379644319.png" alt="SeaHaven_0-1710379644319.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>Thu, 14 Mar 2024 01:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12639344#M16409</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-03-14T01:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12640728#M16410</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14999955"&gt;@eusuntbogdyE7CEK&lt;/a&gt; please&amp;nbsp;upload a TRUE and REAL Dwg, as I can see it is an array of the same figures all around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For better LISp understanding , it will be better to set the 96 color pline at it's own layer , and white plines too .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 14:57:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12640728#M16410</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2024-03-14T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12641196#M16411</link>
      <description>&lt;P&gt;Would the distance they need to extend always be &lt;EM&gt;within a similar small range?&lt;/EM&gt;&amp;nbsp; It wouldn't be hard for a routine to find all the green Polylines, and search within a certain distance [3 drawing units should do it in your drawing] of each endpoint for a white Polyline, and if it finds one, Extend to it. [ That would also need to count on there being no white ones within that search distance from any green ends &lt;EM&gt;other than&lt;/EM&gt; the ones you want Extended.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[The same would work with just Lines.&amp;nbsp; It would be a memory saver if those Polylines were Lines instead, or if they were Joined together into &lt;EM&gt;collective&lt;/EM&gt; Polylines, instead of being independent single-segment ones.]&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:01:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12641196#M16411</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-03-14T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12644446#M16412</link>
      <description>&lt;P&gt;Try this,&amp;nbsp;must pedit all objects do pedit M Join do twice, then make sure green plines are on another layer. The offset factor at moment is 0.4 may need a different value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:PLEX ( / lay ss ss2 ent obj1 obj2 start end)
(setq lay (cdr (assoc 8 (entget (car (entsel "Pick pline to extend to for layer "))))))

(prompt "\nselect all plines ")
(setq ss (ssget (list (cons 0 "LWPOLYLINE")(cons 8 lay))))

(setq pt (getvar 'extmax))

(if (= ss nil)
  (alert "No plines selected ")
  (progn
  (repeat (setq x (sslength ss))
    (setq ent (ssname ss (setq x (1- x))))
    (setq obj1 (vlax-ename-&amp;gt;vla-object ent))
    (command "offset" 0.4 ent pt "")
    (setq ent2 (entlast))
    (setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) 
    (entget ent2))))
    (setq co-ord (cons (last co-ord) co-ord))
    (entdel ent2)

    (setq ss2 (ssget "F" co-ord))

    (setq obj2 (vlax-ename-&amp;gt;vla-object (ssname ss2 0)))
    (setq start (vlax-curve-getstartPoint obj2))
    (setq end (vlax-curve-getEndPoint obj2))

    (command "extend" ent "" start end "")
  )
)
)
(princ)
)
(c:plex)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 02:38:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12644446#M16412</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-03-16T02:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647800#M16413</link>
      <description>Got it, will do. Thank you for the information!</description>
      <pubDate>Mon, 18 Mar 2024 12:03:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647800#M16413</guid>
      <dc:creator>bogdan_marianJQ474</dc:creator>
      <dc:date>2024-03-18T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647806#M16414</link>
      <description>Hey Kent! Yes the distance will always have a small range. It will not be the same everytime.&lt;BR /&gt;&lt;BR /&gt;I would agree with you that if the polylines were lines it would be a memory saver. In our use-case though, a application will export from svg to dxf and convert automatically the resulting lines as Polylines. That's why they are independent. To Join them toghether, I usuall make a PEDIT / M / Join.</description>
      <pubDate>Mon, 18 Mar 2024 12:05:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647806#M16414</guid>
      <dc:creator>bogdan_marianJQ474</dc:creator>
      <dc:date>2024-03-18T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Easiest way to Extend/Join the Line Automatically</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647812#M16415</link>
      <description>Hey Sea-Haven! This is a great idea!&lt;BR /&gt;&lt;BR /&gt;I've tested the LIPS and it works in 70% of the time, even in the example DWG I've attached above.&lt;BR /&gt;&lt;BR /&gt;Will try to tinker with the offset to see if it would make any difference.&lt;BR /&gt;&lt;BR /&gt;Having this option, I'm thinking to implement a process that all notches are colored in a certain way. Given this, can we run this Lisp automatically on all the green (or any other color) items in the canvas?&lt;BR /&gt;&lt;BR /&gt;Thank you for your patience and expertise. You guys rock!</description>
      <pubDate>Mon, 18 Mar 2024 12:08:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/easiest-way-to-extend-join-the-line-automatically/m-p/12647812#M16415</guid>
      <dc:creator>bogdan_marianJQ474</dc:creator>
      <dc:date>2024-03-18T12:08:57Z</dc:date>
    </item>
  </channel>
</rss>

