<?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: Errors Encountered in Batch Plotting with AutoLISP Script in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12707265#M15309</link>
    <description>&lt;P&gt;We had advantage of fixed title block, so the plot sequence use a detailed config like this.&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="general"&gt;COMMAND "-PLOT"  "Y"  "" "Cutepdf Writer"
	       "A3"	"m"    "LANDSCAPE"	   "N"   "W"  "-6,-6"    "807,560"	"1=2"  "C"
	       "y"	  "Designlasercolour.ctb" "Y"	"n"    "n"    "y"   "N" "N" "y"      )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to edit it to suit your title block this is for an A1 sheet but plotted as a A3 then its buried inside a layout loop so all layouts are plotted. Can do this inside a script. Another pre lisp I have is move all layouts to 0,0 this stops title blocks that have been moved not plotting correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok version 2 accepts layouts with different title blocks still automatically plotted think Landscape &amp;amp; Portrait.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may help not a solution.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Apr 2024 06:26:22 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-04-14T06:26:22Z</dc:date>
    <item>
      <title>Errors Encountered in Batch Plotting with AutoLISP Script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12705799#M15307</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to automate a batch plotting process using an AutoLISP script in AutoCAD, but I'm encountering multiple errors that I can't seem to resolve. Here's a brief description of my script and the issues:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script Overview:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The script is designed to batch plot multiple areas into PDFs based on predefined coordinates. It should set the plotting parameters and execute the plotting command for each area. However, when I run the script, the commands and parameters are not recognized as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Errors:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Commands like 'Y' and 'N' for confirming plot dialog options are not recognized ("Unknown command").&lt;/LI&gt;&lt;LI&gt;The plotting device and configurations like 'Model', 'ALPDF', 'Inches', 'Landscape', 'Window' are not recognized and lead to repeated prompts.&lt;/LI&gt;&lt;LI&gt;File paths and output commands are not executed correctly, causing the script to fail to save the plotted PDFs.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here are some snippets of the error messages I am receiving:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Command: Y Unknown command "Y". Press F1 for help.&lt;BR /&gt;Command: _.delay Enter delay time in milliseconds: 2000&lt;BR /&gt;Command: -PLOT Detailed plot configuration? [Yes(Y)/No(N)] &amp;lt;No&amp;gt;: N&lt;BR /&gt;Batch name or [?]: Model&lt;BR /&gt;Enter plot configuration name &amp;lt;&amp;gt;: ALPDF &amp;lt;ALPDF&amp;gt; not found.&lt;BR /&gt;Enter plot configuration name &amp;lt;&amp;gt;: Output device name or [?] &amp;lt;DWF6 ePlot.pc3&amp;gt;: Inches &amp;lt;Inches&amp;gt; not found.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have attempted different configurations and checked my syntax multiple times, but the errors persist. Here's a part of the script where the issue seems to manifest:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(command "-PLOT" "N" "Model" "ALPDF" "" "Inches" "Landscape" "Y" "Window"&lt;BR /&gt;(strcat (rtos xMin 2 2) "," (rtos yMin 2 2))&lt;BR /&gt;(strcat (rtos xMax 2 2) "," (rtos yMax 2 2))&lt;BR /&gt;"Fit" "Center" "Y" "" "Y" "N" "N" "N" "Y"&lt;BR /&gt;(strcat outputPath "Output_" (itoa (1+ (setq i (1+ i)))) ".pdf")&lt;BR /&gt;"Y")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help identify what might be going wrong or suggest how to correct these issues? Any advice or examples of similar scripts that work correctly would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 00:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12705799#M15307</guid>
      <dc:creator>heuiy</dc:creator>
      <dc:date>2024-04-13T00:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Errors Encountered in Batch Plotting with AutoLISP Script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12705987#M15308</link>
      <description>&lt;P&gt;You can test the plot sequence commands on your own by entering the &lt;STRONG&gt;-PLOT&lt;/STRONG&gt; (preceding the command name with a hyphen) and you'll see that when you reply &lt;STRONG&gt;No&lt;/STRONG&gt; at the "&lt;STRONG&gt;Detailed plot configuration&lt;/STRONG&gt;" prompt only the Page Setup prompt is requested &amp;amp; there are a number of questions that are no longer asked:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1712981145541.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349283iBA7083E11D6BEE16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1712981145541.png" alt="paullimapa_0-1712981145541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now when you respond with &lt;STRONG&gt;Yes &lt;/STRONG&gt;at the "&lt;STRONG&gt;Detailed plot configuration&lt;/STRONG&gt;" prompt then the Page Setup prompt is no longer asked but the additional questions are asked:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1712981500053.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349285i0971FFD0D1201E7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1712981500053.png" alt="paullimapa_1-1712981500053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So structure your script file to respond accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 04:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12705987#M15308</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-04-13T04:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Errors Encountered in Batch Plotting with AutoLISP Script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12707265#M15309</link>
      <description>&lt;P&gt;We had advantage of fixed title block, so the plot sequence use a detailed config like this.&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="general"&gt;COMMAND "-PLOT"  "Y"  "" "Cutepdf Writer"
	       "A3"	"m"    "LANDSCAPE"	   "N"   "W"  "-6,-6"    "807,560"	"1=2"  "C"
	       "y"	  "Designlasercolour.ctb" "Y"	"n"    "n"    "y"   "N" "N" "y"      )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to edit it to suit your title block this is for an A1 sheet but plotted as a A3 then its buried inside a layout loop so all layouts are plotted. Can do this inside a script. Another pre lisp I have is move all layouts to 0,0 this stops title blocks that have been moved not plotting correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok version 2 accepts layouts with different title blocks still automatically plotted think Landscape &amp;amp; Portrait.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may help not a solution.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 06:26:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/errors-encountered-in-batch-plotting-with-autolisp-script/m-p/12707265#M15309</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-04-14T06:26:22Z</dc:date>
    </item>
  </channel>
</rss>

