<?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: Breaking a Qleader in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7000840#M121571</link>
    <description>&lt;P&gt;Google "qleader to mleader". &amp;nbsp;The first discussion has a program that works.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 17:16:31 GMT</pubDate>
    <dc:creator>dbroad</dc:creator>
    <dc:date>2017-04-06T17:16:31Z</dc:date>
    <item>
      <title>Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996425#M121563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question? Is there anyway to break a QLEADER without exploding it and using break. DIMBREAK can be used in MLEADER.&lt;/P&gt;
&lt;P&gt;But for a QLEADER is there a way to break it in any of the latest versions?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 06:19:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996425#M121563</guid>
      <dc:creator>Vinayv4v</dc:creator>
      <dc:date>2017-04-05T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996833#M121564</link>
      <description>&lt;P&gt;No I don't think you can, that is one of the differences between a Leader and an Mleader.&amp;nbsp; You can use a program to convert your Leaders to Mleaders than break them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached code written by Jeffery Allen (2007) which will convert Leaders to Mleaders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 10:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996833#M121564</guid>
      <dc:creator>KimBrunz</dc:creator>
      <dc:date>2017-04-05T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996843#M121565</link>
      <description>&lt;P&gt;Hi Kim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;I convert it into an mleader then I can apply Dimensionbreak. But what if I want the text to appear like this in a mleader (above the line).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="i29^cimgpsh_orig.JPG" style="width: 341px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/341503i79ADA2D8C32486B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="i29^cimgpsh_orig.JPG" alt="i29^cimgpsh_orig.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Because this is the standard in my drawing. Text above the leader.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 10:33:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996843#M121565</guid>
      <dc:creator>Vinayv4v</dc:creator>
      <dc:date>2017-04-05T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996898#M121566</link>
      <description>&lt;P&gt;Mleader Style Manager:&lt;/P&gt;
&lt;P&gt;Set Current Style Type:&lt;/P&gt;
&lt;P&gt;Modify:&lt;/P&gt;
&lt;P&gt;Content Tab:&lt;/P&gt;
&lt;P&gt;Leader connection at bottom:&lt;/P&gt;
&lt;P&gt;For attachment in the drop downs select Underline top line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kim&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 11:04:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996898#M121566</guid>
      <dc:creator>KimBrunz</dc:creator>
      <dc:date>2017-04-05T11:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996938#M121567</link>
      <description>&lt;P&gt;Hello Kim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your suggestion. But I have plenty of drawings each containing 20 to 40 Qleaders which needed to be Break. So converting one at a time with this Lisp is not practical and would take so much time. Any other suggestion. A lisp for converting selected qleaders with nearby text or something.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 11:17:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6996938#M121567</guid>
      <dc:creator>Vinayv4v</dc:creator>
      <dc:date>2017-04-05T11:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6997164#M121568</link>
      <description>&amp;gt;&amp;gt;&amp;gt;...Any other suggestion...&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;What you want is not available for the old and untouched QLEADER.</description>
      <pubDate>Wed, 05 Apr 2017 12:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6997164#M121568</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2017-04-05T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6997996#M121569</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4072116"&gt;@Vinayv4v&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that this would be tedious if you had to do it one at a time. Perhaps, if you like, I can move this thread to the Customization forum to see if someone can help you modify the original lisp routine to try and find the text associated with the leader. Maybe this can be done by proximity or by window selection or by allowing the routine to take the selection of both entities at once in some other fashion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let&amp;nbsp;me know if you would like the thread moved.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 17:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6997996#M121569</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-04-05T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6999131#M121570</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be really helpful if you can move the thread to the customization forum. Maybe I could get some help from there.&lt;/P&gt;
&lt;P&gt;Thank you Dean for the confirmation.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 04:24:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/6999131#M121570</guid>
      <dc:creator>Vinayv4v</dc:creator>
      <dc:date>2017-04-06T04:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7000840#M121571</link>
      <description>&lt;P&gt;Google "qleader to mleader". &amp;nbsp;The first discussion has a program that works.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:16:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7000840#M121571</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2017-04-06T17:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7001042#M121572</link>
      <description>&lt;P&gt;This modified version works for me (attachment type is hard coded specific to OP's needs):&lt;/P&gt;
&lt;PRE&gt;;;;LEADER2MULTILEADER
;;;Converts autocad leaders with text or mtext to autocad 2008+ multileaders
;;;created by Jeffery Allen - 11/1/2007
;;;edited by Henry C. Francis - 4/6/2017
;;;
;;;Command defined:	LDR2MLDR

(defun LEADER2MULTILEADER (/              ent1           ent1-gcode
                           ent1-type      leader-pt-list leader-1st-pt
                           leader-2nd-pt  ent2           ent2-gcode
                           ent2-type      text-strg
                          )
  (vl-load-com)
  (princ "\nSelect Leaders: ")
  (princ)
  (setq qldr-ss (ssget '((0 . "LEADER"))))
  (setq cnt 0)
  (while
    (and qldr-ss
         (&amp;lt; cnt (sslength qldr-ss))
    ) ;_ end of and
     (setq ent1       (ssname qldr-ss cnt)
           ldrobj     (vlax-ename-&amp;gt;vla-object ent1)
           ent1-gcode (entget ent1)
           ent1-type  (cdr (assoc 0 ent1-gcode))
     ) ;_ end of setq
     (if (= ent1-type "LEADER")
       (progn
         (setq leader-pt-list (member (assoc 10 ent1-gcode) ent1-gcode)
               leader-1st-pt  (cdr (car leader-pt-list))
               leader-2nd-pt  (cdr (cadr leader-pt-list))
               entobj         (vlax-get-property ldrobj 'Annotation)
               arwsize        (vlax-get-property ldrobj 'ArrowheadSize)
               sclfact        (vlax-get-property ldrobj 'ScaleFactor)
         ) ;_ end of setq
         (if entobj
           (setq text-strg      (vlax-get-property entobj 'TextString)
                 ent2           (vlax-vla-object-&amp;gt;ename entobj) ;(car (entsel "\nSelect Text or Mtext: "))
                 ent2-gcode     (entget ent2)
                 ent2-type      (cdr (assoc 0 ent2-gcode))
           )
         )
         (COND
           ((= ent2-type "MTEXT")
            (setq enthgt         (vlax-get-property entobj 'Height)
                  entwdt         (vlax-get-property entobj 'Width)
            ))
           ((= ent2-type "TEXT")
            (setq enthgt         (vlax-get-property entobj 'Height)
                  txtbox         (textbox (entget ent2))
                  entwdt         (caadr (textbox (entget ent2)))
            ))
         )
         (if text-strg
           (progn
             (setvar "OSMODE" (boole 7 (getvar "OSMODE") 16384))
                                        ;osnap off

             (setvar "CMDECHO" 0)

             (command "_.ERASE"     ent1          ent2
                      ""            "_.MLEADER"   leader-1st-pt
                      leader-2nd-pt text-strg
             ) ;_ end of command
             (setq newmldr (entlast)
                   newobj  (vlax-ename-&amp;gt;vla-object newmldr)
             )
             (IF newobj
               (progn
                 (vlax-put-property newobj 'TextHeight enthgt)
                 (vlax-put-property newobj 'TextWidth entwdt)
                 (vlax-put-property newobj 'ArrowheadSize (* arwsize sclfact))
                 (vlax-put-property newobj 'TextBottomAttachmentType 0)
                 (vlax-put-property newobj 'TextLeftAttachmentType 7)
                 (vlax-put-property newobj 'TextRightAttachmentType 7)
               )
             )
             (setvar "CMDECHO" 1)
             (setvar "OSMODE" (boole 2 (getvar "OSMODE") 16384))
                                        ;osnap on
           ) ;_ end of progn
           (progn
             (princ "\nLeader has no annotation attached to it! ")
             (princ)
           )
         )
       ) ;_ end of progn
     ) ;_ end of if
     (setq cnt (1+ cnt))
  ) ;_ end of while
  (princ)
)
(DEFUN c:ldr2mldr ()
  (LEADER2MULTILEADER)
)
(princ "Leader 2 Multileader loaded...")
(princ)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 18:59:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7001042#M121572</guid>
      <dc:creator>hencoop</dc:creator>
      <dc:date>2017-04-06T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7003963#M121573</link>
      <description>&lt;P&gt;You mentioned a dimension break?&lt;/P&gt;
&lt;P&gt;A bandage for your thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 22:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7003963#M121573</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2017-04-07T22:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking a Qleader</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7003999#M121574</link>
      <description>I understood that the OP wanted to use DIMBREAK ON his leaders but it does not work with leaders so converting them to multileaders was to make DIMBREAK work with them.</description>
      <pubDate>Fri, 07 Apr 2017 23:35:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/breaking-a-qleader/m-p/7003999#M121574</guid>
      <dc:creator>hencoop</dc:creator>
      <dc:date>2017-04-07T23:35:16Z</dc:date>
    </item>
  </channel>
</rss>

