<?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: batch plotting with accoreconsole in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532362#M129083</link>
    <description>&lt;P&gt;The script is a default to what i use in the gui mode. If the statements are ignored in core, then that's fine. I can use the same script in gui mode or with the core. makes less confusion for my cad users and one less script to edit.&lt;/P&gt;&lt;P&gt;I can see it gets past the those statements and loads the lisp routine, but nothing happens after that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The real issue is running the lisp in the core mode. if i CAN run (command "") based lisp routines, not sure why this isn't working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems I'm not the only one stuck. I just found this post showing a very similar issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/317121/print-single-message/false/page/1" target="_blank"&gt;http://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/317121/print-single-message/false/page/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the loop function is what is failing for the lisp. I dont know of any other workaround. Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 21:14:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-30T21:14:20Z</dc:date>
    <item>
      <title>batch plotting with accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6531645#M129081</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a handy lisp that normally run in the autocad GUI that plots all layouts in a drawing using a particular pagesetup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the coreconsole does not allow me to use (command "commandname") statements inside my lisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using just script, i can run the -plot command but this only works for the current layout of the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is, has anyone figured out a way to use the accoreconsole to print multiple layouts in a drawing using a predefined pagesetup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my lisp code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:PLOTALL2PDF ()
(setvar "FILEDIA" 0)
(foreach lay (layoutlist)
(setvar 'CTab lay)
(COMMAND "-PLOT"
"N"
""
"PDF_arch-E"
""
"";plot to a file y/n option
"N"
"Y" )
)
(SETVAR "filedia" 1)
)
(c:plotall2pdf)(princ)&lt;/PRE&gt;&lt;P&gt;i've been calling up the lisp in my script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FILEDIA
0
CMDDIA
0
ATTREQ
0
(LOAD "R:/lisp/plotall2pdf.lsp")
QSAVE
FILEDIA
1
CMDDIA
1
ATTREQ
1&lt;/PRE&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;</description>
      <pubDate>Tue, 30 Aug 2016 16:32:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6531645#M129081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T16:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: batch plotting with accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532223#M129082</link>
      <description>&lt;P&gt;Accoreconsole does allow (command "commandname" ...) statements. &amp;nbsp;It does not allow for commands that require dialog box entry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is unnecessary &amp;nbsp;in accoreconsole&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setvar "FILEDIA" 0)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Using a setup here, this is the command result in accoreconsole:&lt;/P&gt;
&lt;LI-SPOILER&gt;Command: (command "-plot"&lt;BR /&gt;(_&amp;gt; "n"&lt;BR /&gt;(_&amp;gt; ""&lt;BR /&gt;(_&amp;gt; "Setup1"&lt;BR /&gt;(_&amp;gt; ""&lt;BR /&gt;(_&amp;gt; ""&lt;BR /&gt;(_&amp;gt; "n"&lt;BR /&gt;(_&amp;gt; "y"&lt;BR /&gt;(_&amp;gt; )&lt;BR /&gt;-plot Detailed plot configuration? [Yes/No] &amp;lt;No&amp;gt;: n&lt;BR /&gt;Enter a layout name or [?] &amp;lt;Model&amp;gt;:&lt;BR /&gt;Enter a page setup name &amp;lt;&amp;gt;: Setup1 Enter an output device name or [?] &amp;lt;AutoCAD P&lt;BR /&gt;Enter a page setup name &amp;lt;&amp;gt;: Setup1 Enter an output device name or [?] &amp;lt;AutoCAD P&lt;BR /&gt;Enter a page setup name &amp;lt;&amp;gt;: Setup1 Enter an output device name or [?] &amp;lt;AutoCAD P&lt;BR /&gt;DF (General Documentation).pc3&amp;gt;:&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;Enter file name &amp;lt;C:\Users\arcinst\Downloads\KJ_SD1-Model.pdf&amp;gt;: Save changes to p&lt;BR /&gt;age setup [Yes/No]? &amp;lt;N&amp;gt; n Proceed with plot [Yes/No] &amp;lt;Y&amp;gt;: y Effective plotting a&lt;BR /&gt;rea: 7.80 wide by 9.60 high&lt;BR /&gt;&lt;BR /&gt;Plotting viewport 2.&lt;BR /&gt;.&lt;BR /&gt; ommand: nil&lt;/LI-SPOILER&gt;
&lt;P&gt;A plot is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since dialog boxes are not supported, all of the statements to set and unset variables are unnecessary. &amp;nbsp;Since no error messages are generated, it may be difficult to debug problems in accoreconsole.&lt;/P&gt;
&lt;P&gt;Most of the statements in your script are unnecessary including the save statement unless you are trying to save plot settings and page setups.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:04:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532223#M129082</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2016-08-30T20:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: batch plotting with accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532362#M129083</link>
      <description>&lt;P&gt;The script is a default to what i use in the gui mode. If the statements are ignored in core, then that's fine. I can use the same script in gui mode or with the core. makes less confusion for my cad users and one less script to edit.&lt;/P&gt;&lt;P&gt;I can see it gets past the those statements and loads the lisp routine, but nothing happens after that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The real issue is running the lisp in the core mode. if i CAN run (command "") based lisp routines, not sure why this isn't working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems I'm not the only one stuck. I just found this post showing a very similar issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/317121/print-single-message/false/page/1" target="_blank"&gt;http://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/317121/print-single-message/false/page/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the loop function is what is failing for the lisp. I dont know of any other workaround. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 21:14:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532362#M129083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T21:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: batch plotting with accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532604#M129084</link>
      <description>&lt;P&gt;There are some lisp functions that don't work so just reusing your gui form of lisp isn't always going to cut it. &amp;nbsp;For example, layoutlist does not return a value in accoreconsole. &amp;nbsp;It is probably because it is an external subroutine probably loaded as part of AutoCAD not needed for non-gui processing. &amp;nbsp;So you would have to use other methods, such as activeX to create the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That the layoutlist function would not be in the core seems odd though because &amp;nbsp;lspdata.lsp, one of the express tools functions lists that function in its core-symbol-list but in the accoreconsole session (member 'layoutlist (atoms-family 0)) returns nil&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 23:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/batch-plotting-with-accoreconsole/m-p/6532604#M129084</guid>
      <dc:creator>dbroad</dc:creator>
      <dc:date>2016-08-30T23:44:22Z</dc:date>
    </item>
  </channel>
</rss>

