<?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: Issue with copying layouts in Autolisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229603#M80040</link>
    <description>&lt;P&gt;Try this... btw it seems that you don't care about a position of the new layout... or do you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:lyt_test (/ pg lyt dsc)

  (if (or (/= (getvar 'ctab) "Model")
	  (prompt "\nError: You're in model!")
	  )
    (while (/= "" (setq dsc (getstring T "\nLayout description: ")))
      (and (if (&amp;gt; (getvar 'cmdactive) 0)
	     (prompt "Something is wrong prior this line... Some command is already active and should not be!!")
	     T)
	   (setq pg (getint "\nNew page #: "))
	   (setq lyt (strcat dsc " (" (itoa pg) ")"))
	   (or (not (vl-position lyt (layoutlist)))
	       (prompt (strcat "\nError: Layout '" lyt "' already exists!")))
	   (or &lt;STRONG&gt;(not&lt;/STRONG&gt; (vl-position "dummy" (layoutlist))&lt;STRONG&gt;)&lt;/STRONG&gt;
	       (vl-cmdf "_.layout" "_delete" "dummy"))
	   (vl-cmdf "_.layout" "_copy" "" "dummy")
	   (vl-cmdf "_.layout" "_rename" "dummy" lyt)
	   )))
  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2020 16:38:12 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2020-01-03T16:38:12Z</dc:date>
    <item>
      <title>Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229329#M80031</link>
      <description>&lt;P&gt;Hello all, I'm a basic autolisp programmer. I'm trying to create and rename layouts.&lt;/P&gt;&lt;P&gt;The code:&amp;nbsp;(command "layout" "copy" (getvar "ctab") "") works fine as a stand alone but when used within a larger program it cancels that program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's always followed by two lines of *Cancel* at the command line, which confirms this.&lt;/P&gt;&lt;P&gt;Any help with a workaround would be greatly appreciated. thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229329#M80031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229354#M80032</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Attach the full code for a look !!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:22:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229354#M80032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229421#M80033</link>
      <description>&lt;P&gt;Here's the code within a simple (while) command and the resulting error message below:&lt;/P&gt;&lt;P&gt;(defun lyt_test ()&lt;BR /&gt;(setq dsc (getstring "\nLayout description: ")&lt;BR /&gt;pg (getint "\nNew page #: ")&lt;BR /&gt;lyt (strcat dsc " (" (itoa pg) ")")&lt;BR /&gt;);setq&lt;/P&gt;&lt;P&gt;(command "layout" "c" (getvar "ctab") lyt);copies current tab&lt;/P&gt;&lt;P&gt;(while&lt;BR /&gt;(/= dsc "")&lt;BR /&gt;(setq dsc (getstring "\nNEXT Layout description: ")&lt;BR /&gt;pg (+ pg 1)&lt;BR /&gt;lyt (strcat dsc " (" (itoa pg) ")")&lt;BR /&gt;);setq&lt;/P&gt;&lt;P&gt;(command "layout" "c" (getvar "ctab") lyt);copies current tab&lt;BR /&gt;);while&lt;BR /&gt;);defun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message at the command line:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;NEXT Layout description: *Cancel*&lt;BR /&gt;; error: Function cancelled&lt;/P&gt;&lt;P&gt;Command: *Cancel*&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:56:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229421#M80033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T14:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229428#M80034</link>
      <description>&lt;P&gt;I agree that the issue would be most likely elsewhere.&lt;/P&gt;
&lt;P&gt;Try to add the active command check prior to this line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Seeing your code... what should we fill into prompts? I¨ve tried something and it seems working...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 15:03:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229428#M80034</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-03T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229454#M80035</link>
      <description>&lt;P&gt;Thank you for your assistance..&lt;/P&gt;&lt;P&gt;Not sure what you mean by trying 'active command line check'. Could you please clarify?&lt;/P&gt;&lt;P&gt;My CMDACTIVE is set to 1 but it's read-only. I'm not familiar with this command.&lt;/P&gt;&lt;P&gt;It's encouraging that you're not having any issues running the code I posted so you must be entering input correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 15:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229454#M80035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T15:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229463#M80036</link>
      <description>&lt;P&gt;Hmm, that was before seeing the code. I thought it's more complex than it is.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;I thought some simple user control, like this:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(if (&amp;gt; (getvar 'cmdactive) 0) (princ "Something is wrong prior this line... Some command is already active and should not be!!"))&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really sure where is the culprit in your code because it works for me. But here is a little enhanced version. Try and see if it helps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:lyt_test (/ pg lyt dsc)

  (if (or (/= (getvar 'ctab) "Model")
	  (prompt "\nError: You're in model!")
	  )
    (while (/= "" (setq dsc (getstring T "\nLayout description: ")))
      (and (setq pg (getint "\nNew page #: "))
	   (setq lyt (strcat dsc " (" (itoa pg) ")"))
	   (or (not (member lyt (layoutlist)))
	       (prompt (strcat "\nError: Layout '" lyt "' already exists!")))
	   (vl-cmdf "_.layout" "copy" "" lyt)
	   )))
  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 15:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229463#M80036</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-03T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229553#M80037</link>
      <description>&lt;P&gt;I ran your code and it successfully created the first new layout as desired but it still crashed.&amp;nbsp; Definitely sounds like something else is at work. I may have to figure out a workaround...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the full command line display and resulting error message if you still feel like tackling it:&lt;/P&gt;&lt;P&gt;Command: LYT_TEST&lt;/P&gt;&lt;P&gt;Layout description: X2&lt;/P&gt;&lt;P&gt;New page #: 5&lt;BR /&gt;_.layout&lt;BR /&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: copy&lt;BR /&gt;Enter name of layout to copy &amp;lt;X1 (4)&amp;gt;:&lt;BR /&gt;Enter layout name for copy &amp;lt;X1 (5)&amp;gt;: X2 (5) Layout "X1 (4)" copied to "X2 (5)".&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Layout description: *Cancel*&lt;BR /&gt;; error: Function cancelled&lt;/P&gt;&lt;P&gt;Command: *Cancel*&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:04:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229553#M80037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T16:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229574#M80038</link>
      <description>&lt;P&gt;the code&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; provided worked for me with no issues or crashes at all.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:13:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229574#M80038</guid>
      <dc:creator>Jonathan3891</dc:creator>
      <dc:date>2020-01-03T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229600#M80039</link>
      <description>&lt;P&gt;Hmm.. Okay that reinforces the probability that the problem lies with my system and/or its setting. Thanks for the additional input!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229600#M80039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229603#M80040</link>
      <description>&lt;P&gt;Try this... btw it seems that you don't care about a position of the new layout... or do you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:lyt_test (/ pg lyt dsc)

  (if (or (/= (getvar 'ctab) "Model")
	  (prompt "\nError: You're in model!")
	  )
    (while (/= "" (setq dsc (getstring T "\nLayout description: ")))
      (and (if (&amp;gt; (getvar 'cmdactive) 0)
	     (prompt "Something is wrong prior this line... Some command is already active and should not be!!")
	     T)
	   (setq pg (getint "\nNew page #: "))
	   (setq lyt (strcat dsc " (" (itoa pg) ")"))
	   (or (not (vl-position lyt (layoutlist)))
	       (prompt (strcat "\nError: Layout '" lyt "' already exists!")))
	   (or &lt;STRONG&gt;(not&lt;/STRONG&gt; (vl-position "dummy" (layoutlist))&lt;STRONG&gt;)&lt;/STRONG&gt;
	       (vl-cmdf "_.layout" "_delete" "dummy"))
	   (vl-cmdf "_.layout" "_copy" "" "dummy")
	   (vl-cmdf "_.layout" "_rename" "dummy" lyt)
	   )))
  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:38:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229603#M80040</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-03T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229635#M80041</link>
      <description>&lt;P&gt;Thank you for the response. The program still crashes with this code..&lt;/P&gt;&lt;P&gt;With regards to the order, is that in reference to the page number prompt? I actually hope to have the new layouts in numerical order. I just have the initial page number prompted.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:45:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229635#M80041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229675#M80042</link>
      <description>&lt;P&gt;Do you really need the naming pattern the same as default? Meaning &lt;EM&gt;LayoutName (index-in-parenthesis)&lt;/EM&gt;. Because it somehow may interfere with each other.&amp;nbsp;See your listing in msg #7. The red numbers should be the same.&lt;/P&gt;
&lt;PRE&gt;Enter layout name for copy &amp;lt;X1 (&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;)&amp;gt;: X2 (5) Layout "X1 (&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;)" copied to "X2 (5)".&lt;/PRE&gt;
&lt;P&gt;How about index without parenthesis...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, still can't replicate the issue, so I cannot fix it. Running out of ideas at this point. You need to allow us to experience the issue:&amp;nbsp;So take your drawing, remove all the content but layouts and somehow describe your workflow... a video capture would be good, a command-line listing may be enough... post the drawing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I found this older code of mine, try and see if it works... The layout name patterns should look like this LayoutName01&lt;/P&gt;
&lt;PRE&gt;(defun c:cnl  (/ num idx old bas new)
  
  (if (and (= 0 (getvar 'tilemode))  					; make sure some layout is current
           (setq num (getint "\nNumber of  copies of this tab: "))	
           (setq idx (getint "\nFirst suffix number: "))
           (setq old (getvar 'ctab))					; current name of layout
           (&amp;gt; (strlen old) 1)						; current name is longer the 1 character
           (setq bas (substr old 1 (- (strlen old) 2)))			; cut last 2 chars for current name to make base name
           )
    (repeat num								
      (setq str (itoa idx)						; make string of suffix integer
            str (if (= 1 (strlen str))					; if is only 1 digit long...
                  (strcat "0" str)					; ... add 0 before
                  str)
            new (strcat bas str))					; new name = base + string
      (if (member new (layoutlist))					; is the new name already used for layout?
        (princ (strcat "\nLayout '" new " ' already exists."))
        (command "._LAYOUT" "_Copy" old (strcat old ".")		; copy current tab, for new tab would be used dummy name (old + .) to make sure that new layout would be always right behing the old one
                 "._LAYOUT" "_Rename" (strcat old ".") new))		; rename dummy layout with real new name.
      (setq idx (1+ idx)						; add 1 to index
            old new)))							; set new name to old for next copy.
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jan 2020 17:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9229675#M80042</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-03T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230084#M80043</link>
      <description>&lt;P&gt;Thank you.. I was also wondering about possible conflict with the numbers in parenthesis but I don't think it is (could still be wrong).&lt;/P&gt;&lt;P&gt;&amp;nbsp;Your code appears to work fine (although without the closing parenthesis) but I can still see something going on in the background.&amp;nbsp;Looking at the text screen readout afterwards, I see a pattern: for every execution of a layout copy there are (2) displays of&amp;nbsp;Command: *Cancel* when the program is done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to start with any given layout tab description and starting page number for ex. "XX (3)" and continue creating additional layout tabs with any desired description with the next incremental page number, for ex. "YY (4)" until the RETURN key terminates during the description prompt.&lt;/P&gt;&lt;P&gt;My code (again entered below) will successfully create and name the first new layout tab but the program crashes after setting to the new layout tab.&lt;/P&gt;&lt;P&gt;I need to have the layout tabs numbered and there will always be at least (1) numbered layout tab already existing.&lt;/P&gt;&lt;P&gt;Drawing file is attached.&amp;nbsp; Below the program code I have pasted the text screen readout.&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:lyt_test (/ dsc pg lyt)&lt;BR /&gt;(setq dsc (getstring "\nLayout description: ")&lt;BR /&gt;pg (getint "\nNew page #: ")&lt;BR /&gt;lyt (strcat dsc " (" (itoa pg) ")")&lt;BR /&gt;);setq&lt;/P&gt;&lt;P&gt;(command "layout" "c" (getvar "ctab") lyt);copies current tab&lt;BR /&gt;(command "layout" "s" lyt);makes the new layout current&lt;/P&gt;&lt;P&gt;(while&lt;BR /&gt;(/= dsc "")&lt;BR /&gt;(setq dsc (getstring "\nNEXT Layout description: ")&lt;BR /&gt;pg (+ pg 1)&lt;BR /&gt;lyt (strcat dsc " (" (itoa pg) ")")&lt;BR /&gt;);setq&lt;/P&gt;&lt;P&gt;(command "layout" "c" (getvar "ctab") lyt);copies current tab&lt;BR /&gt;(command "layout" "s" lyt);makes the new layout current&lt;BR /&gt;);while&lt;BR /&gt;);defun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Text screen readout:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: LYT_TEST&lt;/P&gt;&lt;P&gt;Layout description: SHT&lt;/P&gt;&lt;P&gt;New page #: 2&lt;BR /&gt;layout&lt;BR /&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: c&lt;BR /&gt;Enter name of layout to copy &amp;lt;SHT (1)&amp;gt;: SHT (1)&lt;BR /&gt;Enter layout name for copy &amp;lt;SHT (2)&amp;gt;: SHT (2) Layout "SHT (1)" copied to "SHT (2)".&lt;/P&gt;&lt;P&gt;Command: layout&lt;BR /&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: s&lt;BR /&gt;Enter layout to make current &amp;lt;SHT (1)&amp;gt;: SHT (2) Regenerating layout.&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;NEXT Layout description: *Cancel*&lt;BR /&gt;; error: Function cancelled&lt;/P&gt;&lt;P&gt;Command: *Cancel*&lt;/P&gt;&lt;P&gt;Command: 'VLIDE&lt;BR /&gt;Command:&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 20:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230084#M80043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T20:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230179#M80044</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works for me. Also, BeeKeeCZ's code worked for me when testing also.&lt;/P&gt;&lt;PRE&gt;(defun c:LYT_TEST ( / ctab pg d lyt cmd)
(if (eq "Model" (setq ctab (getvar 'CTAB)))
  (progn (prompt "\n...Can Not be run in Model Space.\n") (exit))
);if
(initget 7) (setq pg (1- (getint "\nNew Page #: ")))
(while (not (eq "" (setq d (getstring (strcat "\nLayout (" (itoa (setq pg (1+ pg))) ") description: ")))))
  (setq lyt (strcat d " (" (itoa pg) ")"))
  (setq cmd (getvar 'CMDECHO)) (setvar 'CMDECHO 0)
  (command  "-LAYOUT" "c" ctab lyt "-LAYOUT" "s" lyt)
  (setvar 'CMDECHO cmd)
);while
(prompt "\nUser finished.. Complete..")
(princ)
);defun&lt;/PRE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 21:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230179#M80044</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2020-01-03T21:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230213#M80045</link>
      <description>&lt;P&gt;Hmm. Nothing new. Cannot replicate the issue. Your command-line listing looks like it was cancelled manually. Literally. If I hit ESC it looks the same. Maybe try to run the routine without VLIDE. Close VLIDE, load attached code by drag-n-drop into drawing, then type the command name to run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW any add-ons, reactors.... are use using anything what might cause *cancel*??&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 21:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230213#M80045</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-03T21:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230382#M80046</link>
      <description>&lt;P&gt;Nope.. nothing else going on in the background. I'm stumpled.. Thank you for your help regardless.. much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 23:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9230382#M80046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T23:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233298#M80047</link>
      <description>&lt;P&gt;Is this behavior associated with multiple -LAYOUT command usage only? Or all commands do this?&lt;/P&gt;
&lt;P&gt;Does this happen only when using (getstring) user prompt? How about if you use (getkword)...&lt;/P&gt;
&lt;P&gt;Do you use some devices with advanced drivers? (multi-button mice, keyboard with additional G-keys...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 15:36:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233298#M80047</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-06T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233330#M80048</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp; I haven't noticed the issue before. It appears to be a direct result of the Command itself.&lt;/P&gt;&lt;P&gt;I did find a workaround: instead of using the 'copy' option in the LAYOUT command, I tried the 'template' option and had no issue. I just had to create a couple of templates based on the sheet sizes I need and am able to import them with no problem. Been celebrating all weekend..lol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all who tried to help!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 15:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233330#M80048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-06T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233366#M80049</link>
      <description>&lt;P&gt;And you do experience the issue even with an empty layout..... Actually, it seems that there are some (almost) empty mtexts... It worth trying... with mtexts removed.&lt;/P&gt;
&lt;P&gt;Otherwise better luck with other commands &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 16:08:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233366#M80049</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-01-06T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with copying layouts in Autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233412#M80050</link>
      <description>&lt;P&gt;Still no luck. Oh well.. all's well that ends well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 16:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/issue-with-copying-layouts-in-autolisp/m-p/9233412#M80050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-06T16:27:38Z</dc:date>
    </item>
  </channel>
</rss>

