<?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 How can I circle or put revcloud in multiple selected objects individually in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9446308#M107332</link>
    <description>&lt;P&gt;I need a Lisp to&amp;nbsp;circle or put revcloud in multiple selected objects individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like &lt;A href="http://www.lee-mac.com/minboundingbox.html" target="_blank" rel="noopener"&gt;this lisp from Leemac&lt;/A&gt; but in objects individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 23:10:43 GMT</pubDate>
    <dc:creator>josue777torsan</dc:creator>
    <dc:date>2020-04-15T23:10:43Z</dc:date>
    <item>
      <title>How can I circle or put revcloud in multiple selected objects individually</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9446308#M107332</link>
      <description>&lt;P&gt;I need a Lisp to&amp;nbsp;circle or put revcloud in multiple selected objects individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like &lt;A href="http://www.lee-mac.com/minboundingbox.html" target="_blank" rel="noopener"&gt;this lisp from Leemac&lt;/A&gt; but in objects individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/569456"&gt;@Lee_Mac&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 23:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9446308#M107332</guid>
      <dc:creator>josue777torsan</dc:creator>
      <dc:date>2020-04-15T23:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I circle or put revcloud in multiple selected objects individually</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9447452#M107333</link>
      <description>&lt;P&gt;For orthogonal rectangular boxes [as a start], you can use &lt;FONT color="#000000"&gt;&lt;STRONG&gt;DrawBoundingBox.lsp&lt;/STRONG&gt;&lt;/FONT&gt; with its &lt;STRONG&gt;&lt;FONT color="#000000"&gt;DBB&lt;/FONT&gt;&lt;/STRONG&gt; command, &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/changing-polyline-shape/m-p/6846671/highlight/true#M349333" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; You can pick as many things as you want, and it will draw them around each one.&amp;nbsp; [The &lt;FONT color="#000000"&gt;DBBM&lt;/FONT&gt; command will draw the collective single box around the extent of all of them.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a &lt;EM&gt;Circle&lt;/EM&gt;&amp;nbsp; through the opposite corners of each bounding box, use this variant:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:DBC (/ ss n); = Draw Bounding Circle(s) around selected object(s)
  (prompt "\nTo Draw Bounding Circle(s) around selected object(s),")
  (if (setq ss (ssget))
    (repeat (setq n (sslength ss))
      (vla-getboundingbox (vlax-ename-&amp;gt;vla-object  (ssname ss (setq n (1- n)))) 'minpt 'maxpt)
      (command "_.circle" "_2P"
        "_none" (trans (vlax-safearray-&amp;gt;list minpt) 0 1)
        "_none" (trans (vlax-safearray-&amp;gt;list maxpt) 0 1)
      ); command
    ); repeat
    (prompt "\nNothing selected."); else
  ); if
  (princ)
); defun -- C:DBC&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, if you want a &lt;EM&gt;Revcloud&lt;/EM&gt; conversion of the bounding whatever-it-is, use these:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:DBCR (/ ss n cr); = Draw Bounding Circular Revcloud(s) around selected object(s)
  (prompt "\nTo Draw Bounding Circular Revcloud(s) around selected object(s),")
  (if (setq ss (ssget))
    (repeat (setq n (sslength ss))
      (vla-getboundingbox (vlax-ename-&amp;gt;vla-object  (ssname ss (setq n (1- n)))) 'minpt 'maxpt)
      (command "_.circle" "_2P"
        "_none" (trans (vlax-safearray-&amp;gt;list minpt) 0 1)
        "_none" (trans (vlax-safearray-&amp;gt;list maxpt) 0 1)
      ); command
      (setq cr (entlast))
      (command
        "_.revcloud" "_object" "_last" "_no"
        "_.erase" cr ""
      ); command
    ); repeat
    (prompt "\nNothing selected."); else
  ); if
  (princ)
); defun -- C:DBCR

(defun C:DBRR (/ ss n rec); = Draw Bounding Rectangular Revcloud(s) around selected object(s)
  (prompt "\nTo Draw Bounding Rectangular Revcloud(s) around selected object(s),")
  (if (setq ss (ssget))
    (repeat (setq n (sslength ss))
      (vla-getboundingbox (vlax-ename-&amp;gt;vla-object  (ssname ss (setq n (1- n)))) 'minpt 'maxpt)
      (command "_.rectangle"
        "_none" (trans (vlax-safearray-&amp;gt;list minpt) 0 1)
        "_none" (trans (vlax-safearray-&amp;gt;list maxpt) 0 1)
      ); command
      (setq rec (entlast))
      (command
        "_.revcloud" "_object" "_last" "_no"
        "_.erase" rec ""
      ); command
    ); repeat
    (prompt "\nNothing selected."); else
  ); if
  (princ)
); defun -- C:DBRR&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The box versions do the orthogonal bounding box, not the minimal one possibly at a non-orthogonal one made by Lee Mac's routine.&amp;nbsp; If that is needed, I could make an individual-object variant of my version of that, at the link in Message 4 of the thread linked at the top of this message, and add the Revcloud conversion.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 11:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9447452#M107333</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-04-16T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I circle or put revcloud in multiple selected objects individually</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9447972#M107334</link>
      <description>&lt;P&gt;I should mention that you need to have reasonable REVCLOUD Arc-size settings in place first.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:27:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9447972#M107334</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-04-16T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I circle or put revcloud in multiple selected objects individually</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9448543#M107335</link>
      <description>&lt;P&gt;Great! Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 18:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-can-i-circle-or-put-revcloud-in-multiple-selected-objects/m-p/9448543#M107335</guid>
      <dc:creator>josue777torsan</dc:creator>
      <dc:date>2020-04-16T18:19:45Z</dc:date>
    </item>
  </channel>
</rss>

