<?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 : Find Distance of multiple parallel lines from a single baseline in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028226#M104410</link>
    <description>&lt;P&gt;In in AutoCAD&amp;nbsp;text&amp;nbsp; format....&lt;/P&gt;</description>
    <pubDate>Sat, 26 May 2018 14:43:14 GMT</pubDate>
    <dc:creator>jaggisingh003</dc:creator>
    <dc:date>2018-05-26T14:43:14Z</dc:date>
    <item>
      <title>LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028114#M104407</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement of finding the distance of multiple parallel lines from a single baseline.&lt;/P&gt;&lt;P&gt;I want LISP that will allow me to select the baseline(from which I need the distance of other lines) and lines for which I need distance. Here in the image below, the&amp;nbsp;yellow line is the baseline and I need distance for all other lines from the yellow line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="large.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/505112iDF63B024C967B253/image-size/large?v=v2&amp;amp;px=999" role="button" title="large.jpg" alt="large.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has worked on this before, kindly help me out.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 11:28:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028114#M104407</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T11:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028180#M104408</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3747317"&gt;@jaggisingh003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;…. I have a requirement of finding the distance of multiple parallel lines from a single baseline.&lt;/P&gt;
&lt;P&gt;I want LISP that will allow me to select the baseline(from which I need the distance of other lines) and lines for which I need distance. ….&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's not difficult, but in what form do you want the distances?&amp;nbsp; Reported at the Command line?&amp;nbsp; Written as Text in the drawing?&amp;nbsp; Sent out to a text or spreadsheet file?&amp;nbsp; Something else?&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 13:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028180#M104408</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-05-26T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028225#M104409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i send you a program that will print a list of the distances between the lines. can you take it from there and complete what you want to do?&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>Sat, 26 May 2018 14:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028225#M104409</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-05-26T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028226#M104410</link>
      <description>&lt;P&gt;In in AutoCAD&amp;nbsp;text&amp;nbsp; format....&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 14:43:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028226#M104410</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028229#M104411</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am happy to use&amp;nbsp;your code. but I&amp;nbsp;don't have any knowledge&amp;nbsp;of Lisp&amp;nbsp;programming.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 14:48:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028229#M104411</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028233#M104412</link>
      <description>&lt;P&gt;then you did not explained what would you do with the list of distances? it's only a list of numbers?&lt;/P&gt;&lt;P&gt;you want only to know the distances or you want to do something with it?&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 14:53:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028233#M104412</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-05-26T14:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028234#M104413</link>
      <description>&lt;P&gt;You can use &lt;FONT color="#000000"&gt;&lt;STRONG&gt;ORDINATE DIMENSIONS&lt;/STRONG&gt;&lt;/FONT&gt;.&amp;nbsp; Make a Dimension Style with both extension lines suppressed if you want only the textual part.&amp;nbsp; Specify the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;datum&lt;/FONT&gt; option.&amp;nbsp; If your reference line isn't at X=0, you can put them all in with the "wrong" values, and afterwards select them all, and STRETCH the shared grip at 0,0 to anywhere on that Line.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 14:54:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028234#M104413</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-05-26T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028237#M104414</link>
      <description>&lt;P&gt;see this image.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to write the distance from baseline at the specified place. like this image..&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="large.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/505139iAEB27D01F813001E/image-size/large?v=v2&amp;amp;px=999" role="button" title="large.jpg" alt="large.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 14:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028237#M104414</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028244#M104415</link>
      <description>&lt;P&gt;I&amp;nbsp;don't use ordinate dimensions. I am using baseline dimension for this like the image below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baseline dimensions" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/505140i478E47B31676FE0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture111.JPG" alt="baseline dimensions" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;baseline dimensions&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Remove extension lines in dimension style.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 15:01:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028244#M104415</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028272#M104416</link>
      <description>&lt;P&gt;so what you want&amp;nbsp;to do is to specify an horizontal line and the lisp will draw all the base dimension from your specified base line?&amp;nbsp; are you using&amp;nbsp;a special dimension style? post the dwg&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 16:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028272#M104416</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-05-26T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028307#M104417</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;you get it correct.&lt;/P&gt;&lt;P&gt;No, I am not using any special type dimension style only.&lt;/P&gt;&lt;P&gt;please find the attached drawing for more information.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 17:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028307#M104417</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T17:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028315#M104418</link>
      <description>&lt;P&gt;are you&amp;nbsp;sure you are doing dimbaseline? cause what i see in your file is just horizontal dimensions between the lines and for that kind of dimension you do not need any lisp use the QDIM command it will do just prefact what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 17:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028315#M104418</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-05-26T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028320#M104419</link>
      <description>&lt;P&gt;see this&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2018 17:48:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028320#M104419</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-26T17:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028367#M104420</link>
      <description>&lt;P&gt;Ok i see now what you mean.&lt;/P&gt;&lt;P&gt;here is AutoDB command to do what you want&lt;/P&gt;&lt;P&gt;first you be asked to specify the 1st dimension line point: you need to pick the 1st point to the left of your base line. than pick the 2nd point to the right (turn ortho on) over the last line&lt;/P&gt;&lt;P&gt;the lisp will select all lines (only lines and if there are other lines remove them) by "Fence"&lt;/P&gt;&lt;P&gt;than the dimensions will be drawn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;improve your dimension style so the outcome will be more readable.&lt;/P&gt;&lt;P&gt;if this suits you, mark it as solusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:AutoDB (/ p0 p1 ss lst^ p13 item0 item1)

 (setvar "cmdecho" 0)
 (command ".undo" "_begin")
  
 (if (and
       (setq p0 (getpoint "\nSpecify first dimension line point: "))
       (setq p1 (getpoint p0 "\nSpecify second dimension line point: "))
       (setq ss (ssget "F" (list p0 p1) '((0 . "line"))))
     )
  (progn
   (setq lst^ (vl-sort (ssnamex ss) (function (lambda (item0 item1) (&amp;lt; (distance p0 (cadr (last item0))) (distance p0 (cadr (last item1))))))))

   (setq item0 (car lst^) item1 (cadr lst^))
   (command "._dimlinear" (setq p13 (cadr (last item0))) (cadr (last item1)) (polar p13 (/ pi 2) (* (getvar "dimtxt") (getvar "dimscale")))
            "._dimtedit" "_last" "_right")

   (foreach item1 (cddr lst^)
    (command "._dimbaseline" (cadr (last item1)) "" ""
             ".dimtedit" "_last" "_right")
   ); foreach
  ); progn
 ); if

 (command "._undo" "_end")
 (setvar "cmdecho" 1)
  
 (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 May 2018 19:09:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028367#M104420</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-05-26T19:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: LISP : Find Distance of multiple parallel lines from a single baseline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028533#M104421</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is highly appreciable for the code provided by you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the kind &amp;amp; quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp; a lot, Moshe&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2018 00:57:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-find-distance-of-multiple-parallel-lines-from-a-single/m-p/8028533#M104421</guid>
      <dc:creator>jaggisingh003</dc:creator>
      <dc:date>2018-05-27T00:57:54Z</dc:date>
    </item>
  </channel>
</rss>

