<?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: Accessing Command Line from Cod Script in Fabrication CADmep Forum</title>
    <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8621917#M3911</link>
    <description>&lt;P&gt;Thanks for the reply. That is correct. Unfortunately, I am pigeonholed into having to access the command line from within a cod script. &lt;BR /&gt;For context, I am trying to create spool drawings that run a lisp file upon creation. Fabrication's "BSPOOL" command dialogue somewhat allows this, however, it will only specifically allow cod files. Not SCR&amp;nbsp;or LSP files. I thought I could potentially get around that on the back side by specifying&amp;nbsp;the LSP&amp;nbsp;through the spool.ini file. However it still only looks for cods&amp;nbsp;when they are being created. &lt;BR /&gt;I am currently running the LSP after they are finished creating through autoscript&amp;nbsp;but would prefer if this could be done as each spool was made versus retroactively. Any ideas are greatly appreciated&lt;SPAN style="font-family: inherit;"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 13:39:03 GMT</pubDate>
    <dc:creator>artcaddept</dc:creator>
    <dc:date>2019-02-26T13:39:03Z</dc:date>
    <item>
      <title>Accessing Command Line from Cod Script</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8619684#M3908</link>
      <description>&lt;P&gt;Is anyone aware of a way to access the command line from within a cod script? Any way to send AutoCAD native or custom commands from within the cod would be helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 17:38:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8619684#M3908</guid>
      <dc:creator>artcaddept</dc:creator>
      <dc:date>2019-02-25T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Command Line from Cod Script</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8620376#M3909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/674453"&gt;@artcaddept&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is anyone aware of a way to access the command line from within a cod script? Any way to send AutoCAD native or custom commands from within the cod would be helpful.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can write a Lisp command that writes and executes a script file.&amp;nbsp; The generated script file can use information stored in variables define by the Lisp command.&amp;nbsp; Not exactly command line access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun c:Bundle ()&lt;BR /&gt;(setq bundle (getstring "\nEnter Bundle Name: "))&lt;BR /&gt;(setq scr (strcat (getvar "Logfilepath") "tmp.cod")&lt;BR /&gt;ss (mapfilter "#5025 = #56 | #5025 = #109" 0 0 1)&lt;BR /&gt;fil (open scr "w"))&lt;BR /&gt;(write-line (strcat "item.customdata[\"Bundle\"].value=" (vl-princ-to-string bundle) "") fil)&lt;BR /&gt;(close fil)&lt;BR /&gt;(executescript scr ss)&lt;BR /&gt;(princ)&lt;BR /&gt;(COMMAND-S ".redraw")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8620376#M3909</guid>
      <dc:creator>MOatman</dc:creator>
      <dc:date>2019-02-25T21:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Command Line from Cod Script</title>
      <link>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8621917#M3911</link>
      <description>&lt;P&gt;Thanks for the reply. That is correct. Unfortunately, I am pigeonholed into having to access the command line from within a cod script. &lt;BR /&gt;For context, I am trying to create spool drawings that run a lisp file upon creation. Fabrication's "BSPOOL" command dialogue somewhat allows this, however, it will only specifically allow cod files. Not SCR&amp;nbsp;or LSP files. I thought I could potentially get around that on the back side by specifying&amp;nbsp;the LSP&amp;nbsp;through the spool.ini file. However it still only looks for cods&amp;nbsp;when they are being created. &lt;BR /&gt;I am currently running the LSP after they are finished creating through autoscript&amp;nbsp;but would prefer if this could be done as each spool was made versus retroactively. Any ideas are greatly appreciated&lt;SPAN style="font-family: inherit;"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fabrication-cadmep-forum/accessing-command-line-from-cod-script/m-p/8621917#M3911</guid>
      <dc:creator>artcaddept</dc:creator>
      <dc:date>2019-02-26T13:39:03Z</dc:date>
    </item>
  </channel>
</rss>

