<?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: Lisp to join vertical lines with horizontal lines in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6591138#M128300</link>
    <description>&lt;P&gt;hi...the osnap setting i have set off and there are many other layers, but i have switched off all the unwanted layers. So technically there is only one layer which is required to be joined.&lt;/P&gt;&lt;P&gt;How am i supposed to attach a dwg file in this??...am trying to do it but not able to...&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 04:07:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-29T04:07:23Z</dc:date>
    <item>
      <title>Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6583601#M128286</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Hi guys..am searching a lisp code to join the vertical lines with horizontal lines.the length will vary for both horizontal and vertical.It should recognize the the lines and join the lines which contain same x vales.Have attached a pic of my requirement. Left is the input and right is the output. The lines in red is the one which the lisp should make.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 06:37:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6583601#M128286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-26T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6583943#M128287</link>
      <description>&lt;P&gt;Hello abilash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check out with this sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command is "JVL" &amp;amp; "JHL"&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="Untitled.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/276202i2E0A0E3D17DDEDFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Salman M.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 10:40:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6583943#M128287</guid>
      <dc:creator>salman_majgaonkar</dc:creator>
      <dc:date>2016-09-26T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584022#M128288</link>
      <description>&lt;P&gt;hi bro....tried out this code...but it is not working...says bad argument type:numberp:nil&lt;/P&gt;&lt;P&gt;tried for separate JVL and together also as u mentioned in the command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 11:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584022#M128288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-26T11:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584120#M128289</link>
      <description>&lt;P&gt;Try this. It looks like you may already have a solution, but here is my option for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun bldLineYPointList(lypl-ss)&lt;BR /&gt;&amp;nbsp;(setq lyplss-len (sslength lypl-ss)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyplss-cnt 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lypl-returnList (list)&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;(while (&amp;lt; lyplss-cnt lyplss-len)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(setq lyplent (ssname lypl-ss lyplss-cnt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lypldata (entget lyplent)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyplpoint1 (cdr (assoc 10 lypldata))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyplpoint2 (cdr (assoc 11 lypldata))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyplss-cnt (1+ lyplss-cnt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(if (/= (nth 1 lyplpoint1) (nth 1 lyplpoint2))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(setq lypl-returnList (append lypl-returnList (list (list (rtos (nth 1 lyplpoint1) 2 8) lyplpoint1)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lypl-returnList (append lypl-returnList (list (list (rtos (nth 1 lyplpoint2) 2 8) lyplpoint2)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;lypl-returnList&lt;BR /&gt;)&lt;BR /&gt;(defun findMatchYCoord(fmyc-point fmyc-list / fmyc-returnPoint)&lt;BR /&gt;&amp;nbsp;(setq fmyc-match (assoc (rtos (cadr fmyc-point) 2 8) fmyc-list))&lt;BR /&gt;&amp;nbsp;(if (and fmyc-match (/= (car fmyc-point) (car (cadr fmyc-match))))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(setq fmyc-returnPoint (cadr fmyc-match))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(setq fmyc-returnPoint nil)&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;fmyc-returnPoint&lt;BR /&gt;)&lt;BR /&gt;(defun makeLine (ml-pt1 ml-pt2)&lt;BR /&gt;&amp;nbsp;(command "line" ml-pt1 ml-pt2 "")&lt;BR /&gt;)&lt;BR /&gt;(defun c:V2HLINES()&lt;BR /&gt;&amp;nbsp;(setq v2h-ss (ssget "X" '((0 . "LINE"))))&lt;BR /&gt;&amp;nbsp;(if v2h-ss&lt;BR /&gt;&amp;nbsp;&amp;nbsp;(progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(setq v2h-pointList (bldLineYPointList v2h-ss)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v2h-workList v2h-pointList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(foreach tpoint v2h-pointList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(setq v2h-ycoord (car tpoint)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v2h-point (cadr tpoint)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v2h-workList (cdr v2h-workList)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v2h-matchPoint (findMatchYCoord v2h-point v2h-workList)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(if v2h-matchPoint&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(makeLine v2h-point v2h-matchPoint)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584120#M128289</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2016-09-26T12:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584173#M128290</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/0d0d7e72-27fe-4661-a036-9d294e00bf76" width="640" height="620" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:48:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584173#M128290</guid>
      <dc:creator>salman_majgaonkar</dc:creator>
      <dc:date>2016-09-26T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584271#M128291</link>
      <description>&lt;P&gt;Nice Video!, grin. It definitely shows your code works. I think the &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960151" target="_blank"&gt;v_p_abilash&lt;/A&gt;'s issue is he may have selected something other than lines in his selection set.&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/3960151" target="_blank"&gt;v_p_abilash&lt;/A&gt;&amp;nbsp;Try the command and keep your selection set to just LINES.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:26:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584271#M128291</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2016-09-26T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584333#M128292</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1092040"&gt;@SeeMSixty7&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;.... I think the @Anonymous's issue is he may have selected something other than lines in his selection set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Anonymous&amp;nbsp;Try the command and keep your selection set to just LINES.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that's the problem, there could be two reasons for it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp; They selected some appropriate Lines but also some other things [such as in a Window selection];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp; The "lines" are really single-segment Polylines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's 1), you can restrict the selection to only Lines, no matter what else may be in the area, by changing both instances of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ssget)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ssget &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;'((0 . "LINE"))&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it won't "see" any other kind of entity in the selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's 2), you can allow Polylines in addition to Lines [even a combination of &lt;EM&gt;both&lt;/EM&gt; types], by changing the above to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ssget &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;'((0 . "LINE,LWPOLYLINE"))&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and changing these lines in both commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq ha6 (cdr (assoc 10 (entget (ssname ha1 ha2)))))&lt;BR /&gt;(setq ha7 (cdr (assoc 11 (entget (ssname ha1 ha2)))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to these instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq ha6 &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;(vlax-curve-getStartPoint&lt;/STRONG&gt; &lt;/FONT&gt;(ssname ha1 ha2)&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;(setq ha7 &lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;(vlax-curve-getEndPoint&lt;/STRONG&gt; &lt;/FONT&gt;(ssname ha1 ha2)&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and if necessary, adding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;(vl-load-com)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;somewhere.&amp;nbsp; In that case, it may be worth adding some other checks, such as whether any Polylines selected are made of &lt;EM&gt;one line segment only&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6584333#M128292</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-26T13:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6586695#M128293</link>
      <description>&lt;P&gt;hey guys...it is working.,....it was a gr8 help..thx...as u mentioned it was in polylines...so i changed it to normal lines and tried it and it worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 12:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6586695#M128293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-27T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587584#M128294</link>
      <description>&lt;P&gt;This seemed like an interesting exercise, so I thought I'd contribute...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:test (/ ss i e lst)
  ;; http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/td-p/6583601

  (if (and (setq ss (ssget '((-4 . "&amp;lt;OR")
                             (0 . "LINE")
                             (-4 . "&amp;lt;AND")
                             (0 . "LWPOLYLINE")
                             (90 . 2)
                             (-4 . "AND&amp;gt;")
                             (-4 . "OR&amp;gt;")
                            )
                    )
           )
           (&amp;gt;= (setq i (sslength ss)) 2)
      )
    (progn
      (repeat i
        (setq e   (ssname ss (setq i (1- i)))
              lst (cons (vlax-curve-getStartPoint e) (cons (vlax-curve-getEndPoint e) lst))
        )
      )

      (mapcar (function (lambda (a b) (entmakex (list '(0 . "LINE") (cons 10 a) (cons 11 b)))))
              (cdr (setq lst (vl-sort lst (function (lambda (a b) (&amp;lt; (car a) (car b)))))))
              (cddr lst)
      )
    )
  )

  (princ)
)
(vl-load-com)
(princ)&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587584#M128294</guid>
      <dc:creator>alanjt_</dc:creator>
      <dc:date>2016-09-27T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587703#M128295</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/514089"&gt;@alanjt_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;.... (ssget '(....
                             &lt;FONT color="#FF0000"&gt;(0 . "LWPOLYLINE")
                             (90 . 2)&lt;/FONT&gt;
....&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just in case it should ever be necessary to make the distinction [perhaps not in the OP's circumstances], &lt;FONT color="#FF0000"&gt;those criteria&lt;/FONT&gt; could sometimes find unwanted&amp;nbsp;things. &amp;nbsp;A single-&lt;EM&gt;arc&lt;/EM&gt;-segment Polyline would fit them, as well as any &lt;EM&gt;closed&lt;/EM&gt; Polyline of 2 segments, whether they are&amp;nbsp;both arc segments [such as&amp;nbsp;DONUT&amp;nbsp;makes, or a tiny REVCLOUD],&amp;nbsp;a line and an arc, or even two line segments on top of each other.&amp;nbsp; In the last case, it would &lt;EM&gt;look&lt;/EM&gt; like what you want, but its StartPoint and EndPoint would be at the &lt;EM&gt;same place&lt;/EM&gt;, so the routine would be thrown off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's more complicated to filter for only &lt;EM&gt;open&lt;/EM&gt;&amp;nbsp;Polylines in (ssget), because the same (assoc 70) entry that has the 1 bit in it if it's closed also has the 128 bit if linetype generation is enabled. &amp;nbsp;It takes entries&amp;nbsp;like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(-4 . "&amp;lt;NOT")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (-4 . "&amp;amp;") (70 . 1); [1 bit included if closed]&lt;/P&gt;
&lt;P&gt;(-4 &amp;nbsp;. "NOT&amp;gt;")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure you can filter out arc segments in (ssget) for certain [no (assoc 42) entry with &lt;EM&gt;other-than-zero&lt;/EM&gt; value], since there will be more than one (assoc 42) entry even for a single-segment Polyline. &amp;nbsp;[I haven't experimented.] &amp;nbsp;But if not, and if you need to avoid those, it can certainly be done by stepping through the resulting selection and checking for that in each one.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587703#M128295</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-27T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587909#M128296</link>
      <description>&lt;P&gt;I must admit, I didn't consider filtering out closed single segment lwpolylines. I didn't even realize one could do such a thing. Which leads me to a question of why in the world would you draw a closed single segment lwpolyline?&lt;/P&gt;&lt;P&gt;No, arcs haven't been filtered out either, but for that matter,&amp;nbsp;neither are non-vertical lines.&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;</description>
      <pubDate>Tue, 27 Sep 2016 20:05:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6587909#M128296</guid>
      <dc:creator>alanjt_</dc:creator>
      <dc:date>2016-09-27T20:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588037#M128297</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/514089"&gt;@alanjt_&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;I didn't consider filtering out closed single segment lwpolylines. I didn't even realize one could do such a thing. Which leads me to a question of why in the world would you draw a closed single segment lwpolyline?&lt;/P&gt;
&lt;P&gt;...&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Really a closed &lt;EM&gt;two-vertex&lt;/EM&gt;, rather than&amp;nbsp;single-segment, Polyline [it can't be closed if it has only one segment], with two segments lying on top of each other. &amp;nbsp;&lt;EM&gt;Accidentally&lt;/EM&gt; would be the primary "why" for such a thing, I imagine -- somehow hitting C in ending the command.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588037#M128297</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-09-27T21:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588469#M128298</link>
      <description>&lt;P&gt;hi...this code seems to work perfect for me...but there seems to be some glitches in the layout which am working.am not able to attach the dwg file &amp;nbsp;over here.&amp;nbsp;so have took a snapshot of it..&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 04:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588469#M128298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T04:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588969#M128299</link>
      <description>&lt;P&gt;I'm glad to hear the code works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try again to attach the drawing file, that way I can test better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of things to try. Are there other layers in the drawing that are off or frozen? If so they could be providing additional points that cause issues. Also make sure OSNAPS are off, other wise your new lines may be grabbing osnap points to be created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 10:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6588969#M128299</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2016-09-28T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6591138#M128300</link>
      <description>&lt;P&gt;hi...the osnap setting i have set off and there are many other layers, but i have switched off all the unwanted layers. So technically there is only one layer which is required to be joined.&lt;/P&gt;&lt;P&gt;How am i supposed to attach a dwg file in this??...am trying to do it but not able to...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 04:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6591138#M128300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T04:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to join vertical lines with horizontal lines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6591957#M128301</link>
      <description>&lt;P&gt;the ssget function does not care if layers are off or frozen. That's why I asked. It might be useful to add a filter to use the current layer then that would isolate to just using the current layer for lines instead of all layers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the following line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(setq v2h-ss (ssget "X" '((0 . "LINE"))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(setq v2h-ss (ssget "X" (list (cons 0 "LINE") (cons 8 (getvar "CLAYER")))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;good luck&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-join-vertical-lines-with-horizontal-lines/m-p/6591957#M128301</guid>
      <dc:creator>SeeMSixty7</dc:creator>
      <dc:date>2016-09-29T13:30:09Z</dc:date>
    </item>
  </channel>
</rss>

