<?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: Trying to write a script in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005499#M135193</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.shanks wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a.102.0.01.dwg&lt;/P&gt;
&lt;P&gt;a.103.1.07.dwg&lt;/P&gt;
&lt;P&gt;a.104.1.01.dwg&lt;/P&gt;
&lt;P&gt;etc.......&lt;/P&gt;
&lt;P&gt;company P&amp;amp;idTblk.dwg&lt;/P&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;script file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INSERT "kbi P&amp;amp;IDTblk"=c:\bctest\A* Y ^C^C&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;/P&gt;
&lt;P&gt;(load "c:\\bctest\\bctest_update.lsp")&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That INSERT line looks like it's going after &lt;EM&gt;multiple&lt;/EM&gt; drawing names, which of course Insert cannot use as a source for a Block redefinition. &amp;nbsp;Shouldn't it be something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INSERT "kbi P&amp;amp;IDTblk"=c:\bctest\&lt;STRONG&gt;a.102.0.01&lt;/STRONG&gt; Y ^C^C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then, if you &lt;EM&gt;cancel&lt;/EM&gt; it before completing the Insertion [and come to think of it, I don't recall whether ^C &lt;EM&gt;works&lt;/EM&gt; as a cancel in a &lt;EM&gt;Script&lt;/EM&gt;, the way it does in a &lt;EM&gt;command macro&lt;/EM&gt;], then as described before, you must &lt;EM&gt;leave out&lt;/EM&gt; the insertion point/scales/rotation and the Erase Last part, and go straight to the (load) function.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2016 20:35:44 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2016-01-25T20:35:44Z</dc:date>
    <item>
      <title>Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996041#M135184</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first time trying a script so go easy on me. My intent is to open a couple hundred files and replace the titleblock. Could and expert take a look at what i have put together down below and tell me what im doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am getting from this is:&lt;/P&gt;&lt;P&gt;1. a new folder named new&lt;/P&gt;&lt;P&gt;2. autocad opens up&lt;/P&gt;&lt;P&gt;3. says cannot find file name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1 = script file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INSERTcompany P&amp;amp;IDTblk=e:\bctest&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;/P&gt;&lt;P&gt;(load "e:\\bctest\\bctest_update.lsp")&lt;BR /&gt;bctest_update&lt;BR /&gt;QUIT&lt;BR /&gt;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 2 = batch file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;md e:\bctest\new&lt;BR /&gt;for %%f in (e:\bctest\A*.dwg) do START/WAIT c:\"program files"\"autodesk"\"Autocad 2015"\acad.exe "%%f"/b e:\bctest\bctest_update.scr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 3 = lisp program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun e:bctest_update(/ dn pa panbdn)&lt;BR /&gt;(setq dn (getvar "dwgname"))&lt;BR /&gt;(setq pa (getvar "dwgprefix"))&lt;BR /&gt;(setq panbdn (strcat pa "new\\" dn))&lt;BR /&gt;(command "save" panbdn )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 18:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996041#M135184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-19T18:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996190#M135185</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.shanks wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1 = script file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INSERTcompany P&amp;amp;IDTblk=e:\bctest&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;/P&gt;
&lt;P&gt;(load "e:\\bctest\\bctest_update.lsp")&lt;BR /&gt;bctest_update&lt;BR /&gt;QUIT&lt;BR /&gt;Y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;On the Script part, I notice a couple of things:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;"INSERTcompany" is not a custom defined command name, and you mean it to be an INSERT command, you are missing&amp;nbsp;a space after it. &amp;nbsp;And if the Block name has a space in it, it will need to be wrapped in double-quotes, or AutoCAD's going to think "company" by itself is the Block name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INSERT "company P&amp;amp;IDTblk"=e:\bctest&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[I'm not sure without trying it whether maybe the &lt;EM&gt;whole&lt;/EM&gt; blockname=filename stretch should be in double-quotes together:&amp;nbsp;"company P&amp;amp;IDTblk=e:\bctest".]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, you will need another return to complete the selection for the Erase command.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 19:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996190#M135185</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-01-19T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996226#M135186</link>
      <description>&lt;P&gt;In addtion to Kent's advice:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If the block already exists in the dwg file when you try to do this insert, acad will prompt you asking whether or not to redefine the block.&amp;nbsp; So you will need to respond Y in that case.&amp;nbsp; (if you know that will ALWAYS be true, then you can safely just add the Y response).&lt;/LI&gt;
&lt;LI&gt;I'm not sure but I believe you can just cancel out of the insert command instead of placing the block and then deleting it.&amp;nbsp; By that time the block should already have been redefined (assuming you provided the Y response as noted above).&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:06:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996226#M135186</guid>
      <dc:creator>doni49</dc:creator>
      <dc:date>2016-01-19T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996255#M135187</link>
      <description>Kent - ok so i've edited it to look like this. But still getting the same error " cannot find specified drawing file"&lt;BR /&gt;&lt;BR /&gt;Step 1 = script file&lt;BR /&gt;&lt;BR /&gt;INSERT "company P&amp;amp;IDTblk"=e:\bctest&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;BR /&gt;&lt;BR /&gt;(load "e:\\bctest\\bctest_update.lsp")&lt;BR /&gt;bctest_update&lt;BR /&gt;QUIT&lt;BR /&gt;Y&lt;BR /&gt;&lt;BR /&gt;step 2 = batch file&lt;BR /&gt;&lt;BR /&gt;md e:\bctest\new&lt;BR /&gt;for %%f in (e:\bctest\A*.dwg) do START/WAIT c:\"program files"\"autodesk"\"Autocad 2015"\acad.exe "%%f"/b e:\bctest\bctest_update.scr&lt;BR /&gt;&lt;BR /&gt;step 3 = lisp program&lt;BR /&gt;&lt;BR /&gt;(defun e:bctest_update(/ dn pa panbdn)&lt;BR /&gt;(setq dn (getvar "dwgname"))&lt;BR /&gt;(setq pa (getvar "dwgprefix"))&lt;BR /&gt;(setq panbdn (strcat pa "new\\" dn))&lt;BR /&gt;(command "save" panbdn )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Doni49 - Where would i put the Y that your recommending?</description>
      <pubDate>Tue, 19 Jan 2016 20:21:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996255#M135187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-19T20:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996289#M135188</link>
      <description>&lt;P&gt;Try &lt;U&gt;&lt;STRONG&gt;INSERT "company P&amp;amp;IDTblk=e:\bctest"&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp; And are you certain that e:\bctest.dwg does actually exist (i.e. there could be a typo).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Type in &lt;U&gt;&lt;STRONG&gt;(Findfile "e:\\bctest.dwg")&lt;/STRONG&gt;&lt;/U&gt; at the command prompt.&amp;nbsp; If it returns nil, then it's unable to find that file for some reason.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:41:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996289#M135188</guid>
      <dc:creator>doni49</dc:creator>
      <dc:date>2016-01-19T20:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996304#M135189</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.shanks wrote:&lt;BR /&gt;Doni49 - Where would i put the Y that your recommending?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The following&amp;nbsp;was copy/pasted when I did something similar here -- the block name and filename/path are different.&amp;nbsp; But the block does exist and the file does exist.&amp;nbsp; So when I ran it, acad prompted me asking if I wanted to redefine the block.&amp;nbsp; I answered Y.&amp;nbsp; Then instead of actually providing an insertion coordinate, I canceled out of it -- but at that point, the block had already been redefined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: -insert Enter block name or [?]: "_ClosedBlank=N:\CAD\Shared\Content\Symbols Library\General\DetailMarkA.dwg"&lt;BR /&gt;Block "_ClosedBlank" already exists. Redefine it? [Yes/No] &amp;lt;N&amp;gt;: y&lt;BR /&gt;Block "_ClosedBlank" redefined&lt;BR /&gt;Units: Inches&amp;nbsp;&amp;nbsp; Conversion:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0833&lt;BR /&gt;Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: *Cancel*&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 20:48:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996304#M135189</guid>
      <dc:creator>doni49</dc:creator>
      <dc:date>2016-01-19T20:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996331#M135190</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.shanks wrote:&lt;BR /&gt;Kent - ok so i've edited it to look like this. But still getting the same error " cannot find specified drawing file"&lt;BR /&gt;&lt;BR /&gt;Step 1 = script file&lt;BR /&gt;&lt;BR /&gt;INSERT "company P&amp;amp;IDTblk"=e:\bctest&lt;BR /&gt;....&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;(load "e:\\bctest\\bctest_update.lsp")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;....&lt;BR /&gt;&lt;BR /&gt;Doni49 - Where would i put the Y that your recommending?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That (load) function makes it look like bctest on the e: drive is a &lt;EM&gt;folder&lt;/EM&gt;, rather than a drawing. &amp;nbsp;Insert can't bring a folder in, only a drawing. &amp;nbsp;Unless there's also a &lt;EM&gt;drawing&lt;/EM&gt; called bctest.dwg in the e: &lt;EM&gt;root&lt;/EM&gt; directory, then you're missing a drawing file name, and it should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INSERT "company P&amp;amp;IDTblk"=e:\bctest&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;\SomeDrawing&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Y would go right after that, if there will always already be a Block named "company P&amp;amp;IDTblk" in the drawing, because that's where it's going to ask you whether you want to redefine it. &amp;nbsp;And I agree, you could just have it cancel the insertion once you've agreed to redefine it, rather than go through with it and then Erase it. &amp;nbsp;Something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INSERT "company P&amp;amp;IDTblk"=e:\bctest&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;\SomeDrawing&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt; Y ^C^C&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;and then immediately into the (load) function.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 21:01:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/5996331#M135190</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-01-19T21:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005163#M135191</link>
      <description>&lt;P&gt;Ok still not working here is what i have up to this point. I have all files and dwgs in a folder named bctest on my c: drive(c:\bctest). I'll make an example list below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a.102.0.01.dwg&lt;/P&gt;&lt;P&gt;a.103.1.07.dwg&lt;/P&gt;&lt;P&gt;a.104.1.01.dwg&lt;/P&gt;&lt;P&gt;etc.......&lt;/P&gt;&lt;P&gt;company P&amp;amp;idTblk.dwg&lt;/P&gt;&lt;P&gt;bctest_update.bat&lt;/P&gt;&lt;P&gt;bctest_update.lsp&lt;/P&gt;&lt;P&gt;bctest_update.scr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;script file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INSERT "kbi P&amp;amp;IDTblk"=c:\bctest\A* Y ^C^C&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;/P&gt;&lt;P&gt;(load "c:\\bctest\\bctest_update.lsp")&lt;BR /&gt;bctest_update&lt;BR /&gt;QUIT&lt;BR /&gt;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lisp file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:bctest_update(/ dn pa panbdn)&lt;BR /&gt;(setq dn (getvar "dwgname"))&lt;BR /&gt;(setq pa (getvar "dwgprefix"))&lt;BR /&gt;(setq panbdn (strcat pa "new\\" dn))&lt;BR /&gt;(command "save" panbdn )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;batch file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;md c:\bctest\new&lt;BR /&gt;for %%f in (c:\bctest\A*.dwg) do START/WAIT c:\"program files"\"autodesk"\"Autocad 2015"\acad.exe "%%f"/b c:\bctest\bctest_update.scr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i initiate the bat file it creates a folder named new, opens up acad, then cannot find any of the files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a snapshot of the errors that come up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry this is dragging out so long. I am new to all of this. thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 18:15:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005163#M135191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T18:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005173#M135192</link>
      <description>&lt;P&gt;kbi p&amp;amp;idtblk.dwg is the file name&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 18:19:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005173#M135192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to write a script</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005499#M135193</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous.shanks wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a.102.0.01.dwg&lt;/P&gt;
&lt;P&gt;a.103.1.07.dwg&lt;/P&gt;
&lt;P&gt;a.104.1.01.dwg&lt;/P&gt;
&lt;P&gt;etc.......&lt;/P&gt;
&lt;P&gt;company P&amp;amp;idTblk.dwg&lt;/P&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;script file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INSERT "kbi P&amp;amp;IDTblk"=c:\bctest\A* Y ^C^C&lt;BR /&gt;0,0 1 1 0&lt;BR /&gt;ERASE L&lt;/P&gt;
&lt;P&gt;(load "c:\\bctest\\bctest_update.lsp")&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That INSERT line looks like it's going after &lt;EM&gt;multiple&lt;/EM&gt; drawing names, which of course Insert cannot use as a source for a Block redefinition. &amp;nbsp;Shouldn't it be something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INSERT "kbi P&amp;amp;IDTblk"=c:\bctest\&lt;STRONG&gt;a.102.0.01&lt;/STRONG&gt; Y ^C^C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then, if you &lt;EM&gt;cancel&lt;/EM&gt; it before completing the Insertion [and come to think of it, I don't recall whether ^C &lt;EM&gt;works&lt;/EM&gt; as a cancel in a &lt;EM&gt;Script&lt;/EM&gt;, the way it does in a &lt;EM&gt;command macro&lt;/EM&gt;], then as described before, you must &lt;EM&gt;leave out&lt;/EM&gt; the insertion point/scales/rotation and the Erase Last part, and go straight to the (load) function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 20:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/trying-to-write-a-script/m-p/6005499#M135193</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-01-25T20:35:44Z</dc:date>
    </item>
  </channel>
</rss>

