<?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 - draw line between selected linear and aligned dimensions in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387646#M1590</link>
    <description>&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;in most simplest terms&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:dim_line (/ dim_sset dimension_dxf)
  (if (setq dim_sset (ssget '((0 . "dimension"))))
    (foreach dimension (vl-remove-if 'listp (mapcar 'cadr (ssnamex dim_sset)))
      (setq dimension_dxf (entget dimension))
      (entmakex (list '(0 . "line") (assoc 8 dimension_dxf) (cons 10 (cdr (assoc 13 dimension_dxf))) (cons 11 (cdr (assoc 14 dimension_dxf)))))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 Mar 2025 17:22:43 GMT</pubDate>
    <dc:creator>komondormrex</dc:creator>
    <dc:date>2025-03-24T17:22:43Z</dc:date>
    <item>
      <title>LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387600#M1588</link>
      <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for help.&lt;/P&gt;&lt;P&gt;I have a lot of disassociated linear and aligned dimensions and I need to draw a line between each dimensions' points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched in forum and net and I have found nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Can someone give a hand please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 16:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387600#M1588</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2025-03-24T16:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387645#M1589</link>
      <description>&lt;P&gt;If by "points" you mean the two definition points that the Dimension measures between, try this [in simplest terms, minimally tested]:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:LDDP ; = Lines between Dimension Definition-Points
  (/ ss n dim ddata)
  (if (setq ss (ssget '((0 . "DIMENSION"))))
    (repeat (setq n (sslength ss))
      (setq
        dim (ssname ss (setq n (1- n)))
        ddata (entget dim)
      ); setq
      (if (= (logand (cdr (assoc 70 ddata)) 6) 0)
        ;; linear/rotated/aligned, NOT angular/radius/diameter/ordinate
        ;; i.e. 70-code value does not contain either 2 or 4 bit
        (command "_.line" ; then
          "_non" (cdr (assoc 13 ddata))
          "_non" (cdr (assoc 14 ddata))
          ""
        ); command
      ); if
    ); repeat
  ); if
  (prin1)
)&lt;/LI-CODE&gt;
&lt;P&gt;It draws the Lines on the current Layer and with all current Property settings, but of course could be expanded to be more particular.&amp;nbsp; And it could use some other things, like Undo begin/end wrapping.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:22:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387645#M1589</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-03-24T17:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387646#M1590</link>
      <description>&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;in most simplest terms&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:dim_line (/ dim_sset dimension_dxf)
  (if (setq dim_sset (ssget '((0 . "dimension"))))
    (foreach dimension (vl-remove-if 'listp (mapcar 'cadr (ssnamex dim_sset)))
      (setq dimension_dxf (entget dimension))
      (entmakex (list '(0 . "line") (assoc 8 dimension_dxf) (cons 10 (cdr (assoc 13 dimension_dxf))) (cons 11 (cdr (assoc 14 dimension_dxf)))))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:22:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387646#M1590</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-03-24T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387668#M1591</link>
      <description>&lt;P&gt;That works fine for linear/aligned/rotated Dimensions, and it seems to do nothing with radius/diameter Dimensions so maybe it doesn't matter with them, but it should recognize and bypass angular and ordinate Dimensions, which it does funny things with [green are the Lines it draws]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1742837444492.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1481077i5CB92A67ABFE1CF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1742837444492.png" alt="Kent1Cooper_0-1742837444492.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:31:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387668#M1591</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-03-24T17:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387669#M1592</link>
      <description>&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387669#M1592</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2025-03-24T17:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387670#M1593</link>
      <description>&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387670#M1593</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2025-03-24T17:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387675#M1594</link>
      <description>&lt;P&gt;Thanks for the help &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I only have linear/aligned/rotated Dimensions, so I am very pleased with your solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, many thanks for saving me hours of work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:34:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387675#M1594</guid>
      <dc:creator>cool.stuff</dc:creator>
      <dc:date>2025-03-24T17:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387687#M1595</link>
      <description>&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;BR /&gt;&lt;LI-CODE lang="general"&gt;....
      (if (= (logand (cdr (assoc 70 ddata)) 6) 0)
        ;; linear/rotated/aligned, NOT angular/radius/diameter/ordinate
        ;; i.e. 70-code value does not contain either 2 or 4 bit
        (command "_.line" ; then
....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Come to think of it, the ignoring of the "wrong" varieties of Dimensions can be done &lt;STRONG&gt;&lt;EM&gt;within the object selection&lt;/EM&gt;&lt;/STRONG&gt; [line 3], rather than by accepting all Dimensions in selection and then checking each one in the processing:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:LDDP ; = Lines between Dimension Definition-Points
  (/ ss n dim ddata)
  (if (setq ss (ssget '((0 . "DIMENSION") (-4 . "&amp;lt;NOT") (-4 . "&amp;amp;") (70 . 6) (-4 . "NOT&amp;gt;"))))
    (repeat (setq n (sslength ss))
      (setq
        dim (ssname ss (setq n (1- n)))
        ddata (entget dim)
      ); setq
      (command "_.line" ; then
        "_non" (cdr (assoc 13 ddata))
        "_non" (cdr (assoc 14 ddata))
        ""
      ); command
    ); repeat
  ); if
  (prin1)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:38:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13387687#M1595</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-03-24T17:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: LISP - draw line between selected linear and aligned dimensions</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13388815#M1596</link>
      <description>&lt;P&gt;althou i did mention that the code provided is the simplest one i suggest&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5952516"&gt;@cool.stuff&lt;/a&gt;&amp;nbsp;a slightly complicated one, dealing&amp;nbsp; with aligned and rotated dims only&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:dim_line (/ dim_sset dimension_dxf)
  (if (setq dim_sset (ssget '((0 . "dimension"))))
    (foreach dimension (vl-remove-if 'listp (mapcar 'cadr (ssnamex dim_sset)))
      (setq dimension_dxf (entget dimension))
	  (if (member (cdr (assoc 100 (reverse dimension_dxf))) '("AcDbAlignedDimension" "AcDbRotatedDimension"))
      	(entmakex (list '(0 . "line") (assoc 8 dimension_dxf) (cons 10 (cdr (assoc 13 dimension_dxf))) (cons 11 (cdr (assoc 14 dimension_dxf)))))
	  )
    )
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 08:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-draw-line-between-selected-linear-and-aligned-dimensions/m-p/13388815#M1596</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-03-25T08:05:46Z</dc:date>
    </item>
  </channel>
</rss>

