<?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: How to make existed multileader vertical in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12491355#M23147</link>
    <description>&lt;P&gt;Easy with LISP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank"&gt;http://www.lee-mac.com/runlisp.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:Mleader90 ( / s i e d a b)

  (if (setq s (ssget "_:L" '((0 . "MULTILEADER"))))
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i)))
	    d (entget e)
	    a (cadr (assoc 110 d))
	    b (cadr (assoc 10 (member '(302 . "LEADER{") d))))
      (setpropertyvalue e "TextLocation/X"
	((if (&amp;gt; b a) - +) (getpropertyvalue e "TextLocation/X") (abs (- b a))))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 16:18:21 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2024-01-11T16:18:21Z</dc:date>
    <item>
      <title>How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12489740#M23145</link>
      <description>&lt;P&gt;I have a lot multileader annotation and i was told to make all the leaders vertical. Is there anyway to make the come true easily, cause i have a lot of annotations. Thanks in advance&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="multileader vetical.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1312828i6A36EDF91CDEF714/image-size/large?v=v2&amp;amp;px=999" role="button" title="multileader vetical.png" alt="multileader vetical.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 02:01:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12489740#M23145</guid>
      <dc:creator>Richard_Yankee</dc:creator>
      <dc:date>2024-01-11T02:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12491081#M23146</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12554068"&gt;@Richard_Yankee&lt;/a&gt;&amp;nbsp;Nothing built-in "automatic" offers that ability except to use object snap tracking which takes some practice to perfect&amp;nbsp;&lt;A href="https://www.nobledesktop.com/learn/autocad/object-snap-tracking#:~:text=Object%20Snap%20Tracking%20can%20be,only%20functions%20during%20a%20command" target="_blank"&gt;https://www.nobledesktop.com/learn/autocad/object-snap-tracking#:~:text=Object%20Snap%20Tracking%20can%20be,only%20functions%20during%20a%20command&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:40:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12491081#M23146</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2024-01-11T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12491355#M23147</link>
      <description>&lt;P&gt;Easy with LISP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank"&gt;http://www.lee-mac.com/runlisp.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:Mleader90 ( / s i e d a b)

  (if (setq s (ssget "_:L" '((0 . "MULTILEADER"))))
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i)))
	    d (entget e)
	    a (cadr (assoc 110 d))
	    b (cadr (assoc 10 (member '(302 . "LEADER{") d))))
      (setpropertyvalue e "TextLocation/X"
	((if (&amp;gt; b a) - +) (getpropertyvalue e "TextLocation/X") (abs (- b a))))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12491355#M23147</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-01-11T16:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12492262#M23148</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;, Thanks for your kindly help, I really appreciate.&lt;/P&gt;&lt;P&gt;I tried the lisp, it seems only works for some of Mleaders not all of them. Could you please help to check what's going on coz&amp;nbsp; I'm not farmiliar with Lisp. Thank you so much&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mleader90.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1313371i00DB8D31FA433876/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mleader90.gif" alt="Mleader90.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 02:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12492262#M23148</guid>
      <dc:creator>Richard_Yankee</dc:creator>
      <dc:date>2024-01-12T02:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12492936#M23149</link>
      <description>&lt;P&gt;Yeap, I can see that, thanks. That's all I can do with the picture.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:27:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12492936#M23149</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-01-12T11:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493317#M23150</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yeap, I can see that, thanks. That's all I can do with the picture.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'll share one with you too.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493317#M23150</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2024-01-12T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493550#M23151</link>
      <description>&lt;P&gt;Ok, a different approach does that trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:Mleader90 ( / s i c o)
  (if (setq s (ssget "_:L" '((0 . "MULTILEADER"))))
    (repeat (setq i (sslength s))
      (and (setq o (vlax-ename-&amp;gt;vla-object (ssname s (setq i (1- i)))))
	   (setq c (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-getleaderlinevertices o 0))))
	   (vla-SetLeaderLineVertices o 0 (vlax-safearray-fill (vlax-make-safearray vlax-vbDouble '(0 . 5)) (apply 'list (mapcar '(lambda (x) (nth x c)) '(0 1 2 0 4 5))))))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make them flat, change the number series to&amp;nbsp;0 1 2 3 1 5.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 16:06:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493550#M23151</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-01-12T16:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493641#M23152</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok, a different approach does that trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:Mleader90 ( / s i c o)
  (if (setq s (ssget "_:L" '((0 . "MULTILEADER"))))
    (repeat (setq i (sslength s))
      (and (setq o (vlax-ename-&amp;gt;vla-object (ssname s (setq i (1- i)))))
	   (setq c (vlax-safearray-&amp;gt;list (vlax-variant-value (vla-getleaderlinevertices o 0))))
	   (vla-SetLeaderLineVertices o 0 (vlax-safearray-fill (vlax-make-safearray vlax-vbDouble '(0 . 5)) (apply 'list (mapcar '(lambda (x) (nth x c)) '(0 1 2 0 4 5))))))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make them flat, change the number series to&amp;nbsp;0 1 2 3 1 5.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Both newer versions work great in the sample I shared. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 16:37:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12493641#M23152</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2024-01-12T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make existed multileader vertical</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12498625#M23153</link>
      <description>Thanks so much</description>
      <pubDate>Tue, 16 Jan 2024 02:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-make-existed-multileader-vertical/m-p/12498625#M23153</guid>
      <dc:creator>Richard_Yankee</dc:creator>
      <dc:date>2024-01-16T02:56:33Z</dc:date>
    </item>
  </channel>
</rss>

