<?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: Select all existing mleaders and change text height and arrow size in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484263#M95094</link>
    <description>&lt;P&gt;mleaderstyle works the same as dimension styles,&amp;nbsp; you can define your own multileader styles as many as you like and even import them to current drawing&amp;nbsp;with Design Center (ctrl+2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you can accomplish a&amp;nbsp;task with basic autocad commands you do not need&amp;nbsp;automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;moshe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2018 20:26:44 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2018-12-21T20:26:44Z</dc:date>
    <item>
      <title>Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484152#M95090</link>
      <description>&lt;P&gt;Is there a lisp that selects all existing leaders and overrides the text height and arrow size? If anyone can help, I would greatly appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 19:21:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484152#M95090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-21T19:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484186#M95091</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the multileader are autocad objects (not simple pline with an arrow) then go to MLEADERSTYLE command and modify the style - no?&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>Fri, 21 Dec 2018 19:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484186#M95091</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-12-21T19:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484190#M95092</link>
      <description>&lt;PRE&gt;(defun c:MleaderSizeChange ( / ss i textsize arrowsize)

  (if (and (setq textsize (getdist "\nText size: "))
           (setq arrowsize (getdist "\nArrow size: "))
           (setq ss (ssget "_A" (list '(0 . "MULTILEADER") (cons 410 (getvar 'CTAB)))))
           )
    (repeat (setq i (sslength ss))
      (setpropertyvalue (ssname ss (setq i (1- i))) "ArrowSize" arrowsize)
      (setpropertyvalue (ssname ss i) "MText/TextHeight" textsize)))
  (princ)
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit: In case you have some Mleader with blocks instead&amp;nbsp;of Mtext, the above will probably crash...&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;
(vl-load-com)

(defun c:MleaderSizeChange ( / ss i textsize arrowsize)

  (if (and (setq textsize (getdist "\nText size: "))
           (setq arrowsize (getdist "\nArrow size: "))
           (setq ss (ssget "_A" (list '(0 . "MULTILEADER") (cons 410 (getvar 'CTAB)))))
           )
    (repeat (setq i (sslength ss))
      (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq i (1- i)))))
      (vl-catch-all-error-p (vl-catch-all-apply 'vla-put-ArrowheadSize (list obj arrowsize)))
      (vl-catch-all-error-p (vl-catch-all-apply 'vla-put-TextHeight (list obj textsize)))))
  (princ)
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 19:58:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484190#M95092</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-12-21T19:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484191#M95093</link>
      <description>&lt;P&gt;It worked but is there a way that I can predefine the arrow being 0.10 and the text height at 0.08 without entering it?&amp;nbsp; Thanks again for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 19:47:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484191#M95093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-21T19:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484263#M95094</link>
      <description>&lt;P&gt;mleaderstyle works the same as dimension styles,&amp;nbsp; you can define your own multileader styles as many as you like and even import them to current drawing&amp;nbsp;with Design Center (ctrl+2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you can accomplish a&amp;nbsp;task with basic autocad commands you do not need&amp;nbsp;automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;moshe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 20:26:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8484263#M95094</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-12-21T20:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8489399#M95095</link>
      <description>&lt;P&gt;Thanks, I'm looking at replacing the part of the code above where you can predefine the arrow head and text size instead of manually everything it every time. I'm not familiar with coding, can any one help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 15:45:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8489399#M95095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-27T15:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8489447#M95096</link>
      <description>Do it once, with MLEADERSTYLE command, save it as a new leader style and have more than one style for everything you need in your TEMPLATE file(s).&lt;BR /&gt;&lt;BR /&gt;Template files are the way to go: they do require pre-planning, but its the correct way to do what you want.&lt;BR /&gt;&lt;BR /&gt;PS: avoid calling any style STANDARD, that's for amateurs: give them all meaningful unique names.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2018 16:11:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8489447#M95096</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2018-12-27T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490721#M95097</link>
      <description>&lt;P&gt;Thanks, what I am trying to do is replace the part below with code where&amp;nbsp; I don't need to manually type in the arrow and text height. The style is already set up but the leaders and text height are already set up but the existing leader and text aren't updated so I have to manually override them. This part of code works but I have to manually enter the arrow and text height so I want to predefine the size instead of entering it. Obviously, it prompts you to enter a size and I want it to be a set size. Hopefully that makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(if (and (setq textsize (getdist "\nText size: ")) (setq arrowsize (getdist "\nArrow size: ")) (setq ss (ssget "_A" (list '(0 . "MULTILEADER") (cons 410 (getvar 'CTAB))))) )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 14:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490721#M95097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-28T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490806#M95098</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It worked but is there a way that I can predefine the arrow being 0.10 and the text height at 0.08 without entering it?&amp;nbsp; Thanks again for your help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:MleaderSize ( / ss i)
  
  (if (setq ss (ssget "_A" (list '(0 . "MULTILEADER") (cons 410 (getvar 'CTAB)))))
    (repeat (setq i (sslength ss))
      (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq i (1- i)))))
      (vl-catch-all-error-p (vl-catch-all-apply 'vla-put-ArrowheadSize (list obj 0.1)))
      (vl-catch-all-error-p (vl-catch-all-apply 'vla-put-TextHeight (list obj 0.08)))))
  (princ)
  )&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Dec 2018 15:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490806#M95098</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-12-28T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select all existing mleaders and change text height and arrow size</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490851#M95099</link>
      <description>&lt;P&gt;Perfect, thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 16:02:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-existing-mleaders-and-change-text-height-and-arrow/m-p/8490851#M95099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-28T16:02:12Z</dc:date>
    </item>
  </channel>
</rss>

