<?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: Help Needed - AutoLISP revision cloud LISP routine in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175505#M5761</link>
    <description>&lt;P&gt;Or, single &lt;STRONG&gt;&lt;EM&gt;forward&lt;/EM&gt;&lt;/STRONG&gt; slashes:&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;"M:/19. ACADE/Support Files/Script Files and LISP Routines/RVCLD/01_RevTri"&lt;/LI-CODE&gt;
&lt;P&gt;And it's a small thing, but note that I omitted the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; .dwg&lt;/STRONG&gt; &lt;/FONT&gt;filetype ending, which you don't need [it won't Insert any other kind of file].&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 18:48:03 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2024-11-26T18:48:03Z</dc:date>
    <item>
      <title>Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175466#M5758</link>
      <description>&lt;P&gt;Hey folks, I am writing a LISP routine to allow me to create a revision cloud and insert a revision triangle into a drawing, along with the ability to change the arc length of the revision cloud prior to creation. I have managed to make the revision cloud part work correctly, but when it gets to the revision triangle, I keep getting an invalid block name error. I know the block name is correct, as is the path to that block, but I keep hitting that roadblock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone assist and tell me what I am doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun C:create_layer ()
  (command "._Layer" "_Make" "DAI-REVISION" "_Color" "4"
             "DAI-REVISION" "LT" "Continuous" "DAI-REVISION" "")
)
(c:create_layer)
(defun C:RVCLD (/ inp ) 
    (initget "Pline Rectangle") ; ask for input
  (setq Inp (getkword "\nWhat type of cloud would you like to draw? [Pline/Rectangle] &amp;lt;Pline&amp;gt;: "))
  (or Inp (setq Inp "Pline"))

(cond
((= inp "Pline")
(defun C:RVCP ()
  (command "_.PLINE")
  (while (= (getvar "CMDNAMES") "PLINE")
    (command pause)
  )
  (command "pedit" "l" "c" "")
  (command "revcloud" "a" pause "" "" "l" "no"))
  (C:RVCP)
)
((= inp "Rectangle")
(Defun C:RVCR ( / opt p1 p2 iph )
(setq p1(getpoint "\nPick first corner of window: "))
        (setq p2(getcorner p1 "\nOpposite corner: "))
        (setvar "plinewid" 0)
        (command "rectang" p1 p2)
(command "REVCLOUD" "a" pause "" "O" (entlast) "N"))
 (C:RVCR)
))
(defun C:INSTRI ()
  (command "-insert" "M:\19. ACADE\Support Files\Script Files and LISP Routines\RVCLD\01_RevTri.dwg" "s" pause pause "")
  (command "attedit" (entlast)))
  (c:INSTRI))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 18:27:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175466#M5758</guid>
      <dc:creator>patrick.phillipsT8ATG</dc:creator>
      <dc:date>2024-11-26T18:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175478#M5759</link>
      <description>&lt;P&gt;you need to use double backslashes when use in lisp code like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "-insert" "M:\\19. ACADE\\Support Files\\Script Files and LISP Routines\\RVCLD\\01_RevTri.dwg" "s" pause pause "")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 18:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175478#M5759</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-26T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175480#M5760</link>
      <description>&lt;P&gt;Change \ to \\ in the following line.&lt;/P&gt;&lt;PRE&gt;(command "-insert" "M:\19. ACADE\Support Files\Script Files and LISP Routines\RVCLD\01_RevTri.dwg" "s" pause pause "")&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 18:34:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175480#M5760</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2024-11-26T18:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175505#M5761</link>
      <description>&lt;P&gt;Or, single &lt;STRONG&gt;&lt;EM&gt;forward&lt;/EM&gt;&lt;/STRONG&gt; slashes:&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;"M:/19. ACADE/Support Files/Script Files and LISP Routines/RVCLD/01_RevTri"&lt;/LI-CODE&gt;
&lt;P&gt;And it's a small thing, but note that I omitted the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; .dwg&lt;/STRONG&gt; &lt;/FONT&gt;filetype ending, which you don't need [it won't Insert any other kind of file].&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 18:48:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175505#M5761</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-11-26T18:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175728#M5762</link>
      <description>&lt;P&gt;Great! The double slashes fixed the issue, but now I have another one.&lt;BR /&gt;&lt;BR /&gt;After I do an APPLOAD and use the command RVCLD, the coding just... does nothing. I've done everything I can to fix this. There's no missing parentheses, no buggy language that I can tell. It just doesn't work.&lt;BR /&gt;&lt;BR /&gt;Here's the updated code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun C:CRTLAY ()
  (command "._Layer" "_Make" "DAI-REVISION" "_Color" "4"
             "DAI-REVISION" "LT" "Continuous" "DAI-REVISION" ""))
(C:CRTLAY)
(defun C:RVCLD (/ inp ) 
    (initget "Pline Rectangle") ; ask for input
  (setq Inp (getkword "\nWhat type of cloud would you like to draw? [Pline/Rectangle] &amp;lt;Pline&amp;gt;: "))
  (or Inp (setq Inp "Pline"))
)
(cond
((= inp "Pline")
(defun C:RVCP ()
  (command "_.PLINE")
  (while (= (getvar "CMDNAMES") "PLINE")
    (command pause)
  )
  (command "pedit" "l" "c" "")
  (command "revcloud" "a" pause "" "" "l" "no"))
  (C:RVCP)
)
((= inp "Rectangle")
(Defun C:RVCR ( / opt p1 p2 iph )
(setq p1(getpoint "\nPick first corner of window: "))
        (setq p2(getcorner p1 "\nOpposite corner: "))
        (setvar "plinewid" 0)
        (command "rectang" p1 p2)
(command "REVCLOUD" "a" pause "" "O" (entlast) "N"))
 (C:RVCR)
))
(C:RVCLD)
(defun C:INSTRI ()
  (command "-insert" "M:\\19. ACADE\\Support Files\\Script Files and LISP Routines\\RVCLD\\01_RevTri.dwg" "s" pause "" "")
  (command "attedit" "l"))
(C:INSTRI)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 20:55:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175728#M5762</guid>
      <dc:creator>patrick.phillipsT8ATG</dc:creator>
      <dc:date>2024-11-26T20:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175802#M5763</link>
      <description>&lt;P&gt;I don't know whether this is your issue, but I would &lt;EM&gt;not&lt;/EM&gt; call each command with those&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (C:whatever)&lt;/STRONG&gt;&lt;/FONT&gt;s&amp;nbsp; immediately after defining it, all within one AutoLisp file.&amp;nbsp; The calling of earlier commands that ask for input would be awaiting that input before it goes on to the next definition.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 21:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175802#M5763</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-11-26T21:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed - AutoLISP revision cloud LISP routine</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175882#M5764</link>
      <description>&lt;P&gt;Thanks for all the help guys. I got it working now.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 22:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-autolisp-revision-cloud-lisp-routine/m-p/13175882#M5764</guid>
      <dc:creator>patrick.phillipsT8ATG</dc:creator>
      <dc:date>2024-11-26T22:26:34Z</dc:date>
    </item>
  </channel>
</rss>

