<?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: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11202885#M45130</link>
    <description>&lt;P&gt;1. To disable Plot file request dialog Set CMDDIA to 0:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(setq CMDDIA (getvar"CMDDIA")) ; get current setting&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"CMDDIA"0) ; disable any layer notifications like unreconciled layers&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(command "-Plot") ; run plot sequence&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"CMDDIA"CMDDIA) ; put original settings back&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setq CMDDIA&amp;nbsp;nil)(princ)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/AutoCAD-Core/files/GUID-CFB4A601-A0BF-49F0-856B-EEE1543A7E03-htm.html" target="_blank"&gt;CMDDIA (System Variable) | AutoCAD 2021 | Autodesk Knowledge Network&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;2. Lisp code should have defined the plot file name as a variable prior to running Plot command sequence. Let's say it's called pdfplotfilename, the code should also include before the Plot command sequence the file delete function &lt;SPAN&gt;(vl-file-delete pdfplotfilename)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. You can manually enter -PLOT command at the AutoCAD command prompt and follow the plot sequence prompts to see what's not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;The last sequence of the Plot command where there's an issue should be changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently:&amp;nbsp;"y" "." "y" "y" "n" "n"&amp;nbsp;&lt;FONT color="#FF0000"&gt;"n"&lt;/FONT&gt;&amp;nbsp;"y" "n")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Change to:&amp;nbsp;"y" "." "y" "y" "n" "n" pdfplotfilename&amp;nbsp;"n" "y")&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This again assumes the lisp code has defined the plot file name to be&amp;nbsp;pdfplotfilename, the pagesetup is not saved and then proceed with plot generation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Lastly, make sure to also set LayerNotify to 0 in case there are any unreconciled layers which would again prompt for correction when running the Plot command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(setq LAYERNOTIFY (getvar"LAYERNOTIFY")) ; get current setting&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"LAYERNOTIFY"0) ; disable any layer notifications like unreconciled layers&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(command "-Plot"........) ; run plot sequence&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"LAYERNOTIFY"LAYERNOTIFY) ; put original settings back&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setq&amp;nbsp;LAYERNOTIFY nil)(princ)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/Turn-Off-Unreconciled-Layers-Notification.html#:~:text=You%20would%20like%20to%20know%20how%20to%20turn,and%20uncheck%20%22Evaluate%20New%20Layers%20Added%20to%20Drawings.%22" target="_blank"&gt;How to turn off the unreconciled layers notification in AutoCAD | AutoCAD | Autodesk Knowledge Network&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 17:25:04 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2022-05-30T17:25:04Z</dc:date>
    <item>
      <title>Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193515#M45124</link>
      <description>&lt;P&gt;We have a custom starter lsp script, which when we load the autocad drawing makes some changes to the drawing settings and parameters. One of the section in lsp runs -PLOT command and it is not working&amp;nbsp;as expected in one of the virtual machines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILEIDA system variable is set to 0 before the plot command is executed,&amp;nbsp;&amp;nbsp;so that FileDialogue does not show up in the process of loading autocad drawing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But , when -plot command is executed, The File Dialogue is shown expecting to enter the filepath..(which is not expected since we have set the FILEIDA =0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Autocad 2014 version. and opening *.DWG drawing , OS is Windows 10 where Autocad 2014 is installed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plot&amp;nbsp; command:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(command "-plot" "y" "Merchandise Layout" "DWG to PDF.pc3" "ARCH expand E1 (30.00 x 42.00 Inches)" "inches" "landscape" "n" "extents" "1=1" "center" "y" "." "y" "y" "n" "n" &lt;FONT color="#FF0000"&gt;"n"&lt;/FONT&gt; "y" "n")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"n" &lt;/FONT&gt;&lt;FONT color="#000000"&gt;is the FileDialogue parameter&amp;nbsp;which not working as expected in -PLOT command&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If anyone has faced similar&amp;nbsp;issue and found a resolution please post here.&lt;/FONT&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 21:49:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193515#M45124</guid>
      <dc:creator>ashwini.pai</dc:creator>
      <dc:date>2022-05-25T21:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193605#M45125</link>
      <description>&lt;P&gt;If it's only one machine doing that, unistall and reinstall CAD to see if it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 23:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193605#M45125</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-05-25T23:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193698#M45126</link>
      <description>&lt;P&gt;Maybe replace&amp;nbsp;&lt;SPAN&gt;"." with "ACAD.ctb" as you have not defined a ctb to be used, I also use a loop for multiple layouts opening each layout, so accept "current" or "" for layout name.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 00:19:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11193698#M45126</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-05-26T00:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11195103#M45127</link>
      <description>We tried reinstallation but didn't work out.</description>
      <pubDate>Thu, 26 May 2022 14:59:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11195103#M45127</guid>
      <dc:creator>Raju.sindripu</dc:creator>
      <dc:date>2022-05-26T14:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11195107#M45128</link>
      <description>we disabled the sync and updated the "." parameter as you suggested but no change.</description>
      <pubDate>Thu, 26 May 2022 15:01:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11195107#M45128</guid>
      <dc:creator>Raju.sindripu</dc:creator>
      <dc:date>2022-05-26T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11196372#M45129</link>
      <description>&lt;P&gt;There is no pdfname this is an example see "pdfname"&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(COMMAND "-PLOT"  "Y"  "" "DWG To PDF"
	       "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C"
	       "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 00:55:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11196372#M45129</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-05-27T00:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad -Plot command one of the parameter is not working as expected in custom lsp when opening DWG drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11202885#M45130</link>
      <description>&lt;P&gt;1. To disable Plot file request dialog Set CMDDIA to 0:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(setq CMDDIA (getvar"CMDDIA")) ; get current setting&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"CMDDIA"0) ; disable any layer notifications like unreconciled layers&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(command "-Plot") ; run plot sequence&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"CMDDIA"CMDDIA) ; put original settings back&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setq CMDDIA&amp;nbsp;nil)(princ)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/AutoCAD-Core/files/GUID-CFB4A601-A0BF-49F0-856B-EEE1543A7E03-htm.html" target="_blank"&gt;CMDDIA (System Variable) | AutoCAD 2021 | Autodesk Knowledge Network&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;2. Lisp code should have defined the plot file name as a variable prior to running Plot command sequence. Let's say it's called pdfplotfilename, the code should also include before the Plot command sequence the file delete function &lt;SPAN&gt;(vl-file-delete pdfplotfilename)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. You can manually enter -PLOT command at the AutoCAD command prompt and follow the plot sequence prompts to see what's not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;The last sequence of the Plot command where there's an issue should be changed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently:&amp;nbsp;"y" "." "y" "y" "n" "n"&amp;nbsp;&lt;FONT color="#FF0000"&gt;"n"&lt;/FONT&gt;&amp;nbsp;"y" "n")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Change to:&amp;nbsp;"y" "." "y" "y" "n" "n" pdfplotfilename&amp;nbsp;"n" "y")&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This again assumes the lisp code has defined the plot file name to be&amp;nbsp;pdfplotfilename, the pagesetup is not saved and then proceed with plot generation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Lastly, make sure to also set LayerNotify to 0 in case there are any unreconciled layers which would again prompt for correction when running the Plot command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(setq LAYERNOTIFY (getvar"LAYERNOTIFY")) ; get current setting&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"LAYERNOTIFY"0) ; disable any layer notifications like unreconciled layers&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(command "-Plot"........) ; run plot sequence&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setvar"LAYERNOTIFY"LAYERNOTIFY) ; put original settings back&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(setq&amp;nbsp;LAYERNOTIFY nil)(princ)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/Turn-Off-Unreconciled-Layers-Notification.html#:~:text=You%20would%20like%20to%20know%20how%20to%20turn,and%20uncheck%20%22Evaluate%20New%20Layers%20Added%20to%20Drawings.%22" target="_blank"&gt;How to turn off the unreconciled layers notification in AutoCAD | AutoCAD | Autodesk Knowledge Network&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 17:25:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-plot-command-one-of-the-parameter-is-not-working-as/m-p/11202885#M45130</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2022-05-30T17:25:04Z</dc:date>
    </item>
  </channel>
</rss>

