<?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: Rectangular Revcloud Command via lisp...? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11781716#M132223</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; Kent, do you have any ideas why 2022 and 2023 would not accept point selection?&lt;/P&gt;</description>
    <pubDate>Sun, 26 Feb 2023 04:22:10 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2023-02-26T04:22:10Z</dc:date>
    <item>
      <title>Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323633#M132215</link>
      <description>&lt;P&gt;&lt;U&gt;Using Autocad 2016&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this several ways...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time I run the "revcloud" command through lisp I seem to get an old "revcloud" command that doesn't have "rectangular" as an option - unlike typing "revcloud" through the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239097i596881430CB8DE17/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="RevCloud.jpg" title="RevCloud.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code trying&amp;nbsp;"R" option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun C:rrv ()
(command "revcloud" "r" "S" "C" "A" (* 0.25 (getvar "DIMSCALE")) "")
;;;Pause for user input:
(while (= (logand (getvar "cmdactive") 1) 1) 
(prompt "\nDraw RevCloud\n")
(command pause)
)
;;;end of Pause
(princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried setting it via the system variable first: (setvar "revcloudcreatemode" 1)&lt;/P&gt;&lt;P&gt;(which is where the "R" option in the command line version seems to be stored) but because the lisp activated "revcloud" seems to be an old one (or something) - it always defaults to "freehand" regardless of that sys var setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code with the sys var&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun C:rrv ()
(setvar "revcloudcreatemode" 1)
(command "revcloud" "S" "C" "A" (* 0.25 (getvar "DIMSCALE")) "")
;;;Pause for user input:
(while (= (logand (getvar "cmdactive") 1) 1) 
(prompt "\nDraw RevCloud\n")
(command pause)
)
;;;end of Pause
(princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any thoughts? &amp;nbsp;This is making me crazy!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323633#M132215</guid>
      <dc:creator>cchiles</dc:creator>
      <dc:date>2016-05-12T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323671#M132216</link>
      <description>&lt;P&gt;Maybe this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:foo ()
  (initcommandversion 2)
  (setq a (getpoint "\nPick first point: "))
  (setq b (getcorner a "\nPick other corner: "))
  (vl-cmdf "._revcloud" "_R" a b )
)

&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2016 18:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323671#M132216</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2016-05-12T18:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323851#M132217</link>
      <description>&lt;P&gt;In case it's of use to you, here's what I have used for that -- RectRevCloud.lsp with its RRC command.&amp;nbsp; It includes some control over the arc size by asking how many bulges you want along the longer sides of the rectangle, and the option of whether to bulge outward or inward.&amp;nbsp; There are some things about it that I would do a little differently today, but I did test it in Acad2016, and it still works.&amp;nbsp; [There's an earlier and shorter but&amp;nbsp;less sophisticated version on a couple of other threads, if you Search for RectRevCloud.]&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:53:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323851#M132217</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-05-12T19:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323853#M132218</link>
      <description>&lt;P&gt;Excellent!Using your suggestion I was able to create a lisp for freehand, &amp;amp; polygonal&lt;/P&gt;&lt;P&gt;Using your suggestion I was able to create a lisp for freehand, &amp;amp; polygonal revclouds as well.&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6323853#M132218</guid>
      <dc:creator>cchiles</dc:creator>
      <dc:date>2016-05-12T19:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6382093#M132219</link>
      <description>&lt;P&gt;Did you find a solution to invoke the "new" revcloud command instead of the old one? I understand these answers do work, but I would rather not rewrite my existing code.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 10:59:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6382093#M132219</guid>
      <dc:creator>andrew_keen</dc:creator>
      <dc:date>2016-06-14T10:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6382125#M132220</link>
      <description>&lt;P&gt;Had a further dig and found and tested the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-6176FC98-DC5D-433E-8D76-F481BE68D46A-htm.html" target="_self"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-6176FC98-DC5D-433E-8D76-F481BE68D46A-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, you need to add the line&lt;/P&gt;&lt;P&gt;(initcommandversion 2)&lt;/P&gt;&lt;P&gt;before your revcloud command and it will use the current version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/6382125#M132220</guid>
      <dc:creator>andrew_keen</dc:creator>
      <dc:date>2016-06-14T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/10117930#M132221</link>
      <description>&lt;P&gt;THANK YOU VERY MUCH...&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 06:29:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/10117930#M132221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-28T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11779916#M132222</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/274358"&gt;@rkmcswain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't get this to work in 2023. Everything I try won't let me select points. Here's the F2 from your command.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;
Command: (defun c:foo ()
(_&amp;gt;   (initcommandversion 2)
(_&amp;gt;   (setq a (getpoint "\nPick first point: "))
(_&amp;gt;   (setq b (getcorner a "\nPick other corner: "))
(_&amp;gt;   (vl-cmdf "._revcloud" "_R" a b )
(_&amp;gt; )
C:FOO
Command: FOO
Pick first point:
Pick other corner: ._revcloud
Minimum arc length: 19'-4.7795"   Maximum arc length: 38'-9.5590"   Style: Normal   Type: Rectangular
Specify first corner point or [Arc length/Object/Rectangular/Polygonal/Freehand/Style/Modify] &amp;lt;Object&amp;gt;: _R
Specify first corner point or [Arc length/Object/Rectangular/Polygonal/Freehand/Style/Modify] &amp;lt;Object&amp;gt;:
Specify opposite corner:
Invalid shape to create revision cloud.&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Feb 2023 21:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11779916#M132222</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-02-24T21:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11781716#M132223</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; Kent, do you have any ideas why 2022 and 2023 would not accept point selection?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 04:22:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11781716#M132223</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-02-26T04:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11782692#M132224</link>
      <description>&lt;P&gt;Is there other stuff in the vicinity, that it might be Osnapping to in a way that makes a flat/empty rectangle?&amp;nbsp; Does it work if you make sure running Osnap is off?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR, in my code, what if you change this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(command "_.rectangle" cor1 cor2)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;to this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;(command "_.rectangle" &lt;FONT color="#FF0000"&gt;"_non"&lt;/FONT&gt; cor1 &lt;FONT color="#FF0000"&gt;"_non"&lt;/FONT&gt; cor2)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and similarly in&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/274358"&gt;@rkmcswain&lt;/a&gt;'s code?&amp;nbsp; There, it looks from your command history&amp;nbsp;like the problem isn't with accepting point selection, but with the process &lt;EM&gt;using&lt;/EM&gt; those points.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 20:30:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11782692#M132224</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-02-26T20:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11782797#M132225</link>
      <description>&lt;P&gt;No, there isn't anything near where I'm selecting. I even tried it in a blank dwg. If I use RK's code, the revcloud command doesn't process the points. If I just use the code below, it prompts for points but doesn't accept them. Does either line below work for you?&lt;/P&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;LI-CODE lang="lisp"&gt;(vl-cmdf "._revcloud" "_R")
(command-s "._revcloud" "_R")&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;I just tried it on my laptop at home with MEP 2023 and RK's function worked. So there is something different about my work pc, where I'm using acade 2023. I used vars2scr to capture my home settings and tomorrow I'll compare with my work pc.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 21:48:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11782797#M132225</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-02-26T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangular Revcloud Command via lisp...?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11783568#M132226</link>
      <description>&lt;P&gt;This works in 2022.&amp;nbsp;&lt;SPAN&gt;I think it hasn't changed in 2023, but can't really test it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:RC ()
  (initcommandversion)
  (command-s "_.revcloud" "_r" pause pause)
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 07:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/rectangular-revcloud-command-via-lisp/m-p/11783568#M132226</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-27T07:34:36Z</dc:date>
    </item>
  </channel>
</rss>

