<?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 that lsp to slelect multiple objects? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992797#M84791</link>
    <description>&lt;P&gt;In lieu of modifying Lee's, I'll offer my own way of Drawing the Bounding Boxes around multiple objects by user selection -- the &lt;STRONG&gt;DBB&lt;/STRONG&gt; command defined &amp;gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-error-for-draw-a-rectangle-bounding-box-in-multiple-block/m-p/8780518/highlight/true#M384998" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;lt;.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 13:26:54 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2019-08-28T13:26:54Z</dc:date>
    <item>
      <title>How to make that lsp to slelect multiple objects?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992773#M84790</link>
      <description>&lt;P&gt;Hi! Im new in Autocad. Can someone help me to change that lsp from Lee Mac.&amp;nbsp;&lt;SPAN&gt;I want to be able to apply function to multiple objects at once.&lt;/SPAN&gt; &lt;SPAN&gt;I tried to change&amp;nbsp;"entsel" with "ssget", but it doesn't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.P. Sorry for my english.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;;; Bounding Box  -  Lee Mac
;; Returns the point list describing the rectangular frame bounding the supplied object.
;; obj - [vla] VLA-Object

(defun LM:boundingbox ( obj / a b lst )
    (if
        (and
            (vlax-method-applicable-p obj 'getboundingbox)
            (not (vl-catch-all-error-p (vl-catch-all-apply 'vla-getboundingbox (list obj 'a 'b))))
            (setq lst (mapcar 'vlax-safearray-&amp;gt;list (list a b)))
        )
        (mapcar '(lambda ( a ) (mapcar '(lambda ( b ) ((eval b) lst)) a))
           '(
                (caar   cadar)
                (caadr  cadar)
                (caadr cadadr)
                (caar  cadadr)
            )
        )
    )
)

(defun c:qwe ( / ent )
    (if (setq ent (car (entsel)))
        (entmake
            (append
               '(
                    (000 . "LWPOLYLINE")
                    (100 . "AcDbEntity")
                    (100 . "AcDbPolyline")
                    (090 . 4)
                    (070 . 1)
                )
                (mapcar '(lambda ( p ) (cons 10 p)) (LM:boundingbox (vlax-ename-&amp;gt;vla-object ent)))
            )
        )
    )
    (princ)
)
(vl-load-com) (princ)&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992773#M84790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-28T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make that lsp to slelect multiple objects?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992797#M84791</link>
      <description>&lt;P&gt;In lieu of modifying Lee's, I'll offer my own way of Drawing the Bounding Boxes around multiple objects by user selection -- the &lt;STRONG&gt;DBB&lt;/STRONG&gt; command defined &amp;gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-error-for-draw-a-rectangle-bounding-box-in-multiple-block/m-p/8780518/highlight/true#M384998" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;lt;.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:26:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992797#M84791</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-08-28T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make that lsp to slelect multiple objects?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992923#M84792</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 14:04:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-that-lsp-to-slelect-multiple-objects/m-p/8992923#M84792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-28T14:04:53Z</dc:date>
    </item>
  </channel>
</rss>

