<?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 Betreff: Troubles running layer renaming script through accoreconsole in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7287428#M116616</link>
    <description>&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV id="messagebodydisplay_0_4" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&lt;EM&gt;"Although, the .dwgs do not have the changes saved to them,"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;In your and my Script, there aren´t any SAVE-Statement, or?&lt;/P&gt;
&lt;P&gt;(good for testing, but changes nothing. Last Line in Script should be:&lt;/P&gt;
&lt;P&gt;_QSAVE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt; "and withing the .log, it is claimed that the .dwgs are read only, even though they are not open anywhere else. Do you know what could cause this?"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Re-start computer , try it again, I´m sure it works well.&lt;/EM&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Aug 2017 13:51:03 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2017-08-09T13:51:03Z</dc:date>
    <item>
      <title>Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7284395#M116610</link>
      <description>&lt;P&gt;I am running a .bat file that runs a layer renaming script through multiple .dwg files. The script works fine in acad.exe, but within accoreconsole, the program states it cannot find the layer.&amp;nbsp; as show below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="accore.PNG" style="width: 675px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/387263i28B6EA49FB7D4644/image-size/large?v=v2&amp;amp;px=999" role="button" title="accore.PNG" alt="accore.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The batch file is written as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOR %%f IN (H:\test\Constructs\*.dwg) DO START C:\"Program Files"\Autodesk\"AutoCAD 2017"\accoreconsole.exe %%f /s H:\test\Constructs\test.scr /l en-US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script reads as follows :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_-rename&lt;BR /&gt;LA&lt;BR /&gt;Q-MACH-NMBR Q-MACH-LABL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked numerous times, the names of the labels are correct. Is this an issue with system variables/settings within autocad/accoreconsole.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:01:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7284395#M116610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-08T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7284953#M116611</link>
      <description>&lt;P&gt;I've always found Core to be hit or miss. You may want to use the acad.exe instead&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 18:01:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7284953#M116611</guid>
      <dc:creator>doglips</dc:creator>
      <dc:date>2017-08-08T18:01:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285028#M116612</link>
      <description>&lt;P&gt;There is normaly no Problem. Are you really sure that these are the right dwg-files?&lt;/P&gt;
&lt;P&gt;Thats the only possible solution (sorry).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change your Script to:&lt;/P&gt;
&lt;P&gt;;--------------------------------------------&lt;/P&gt;
&lt;P&gt;_-layer&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_-rename&lt;BR /&gt;LA&lt;BR /&gt;Q-MACH-NMBR Q-MACH-LABL&lt;/P&gt;
&lt;P&gt;;--------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;command Layer Option "?" display all Layers&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 18:29:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285028#M116612</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-08-08T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285051#M116613</link>
      <description>&lt;P&gt;Or there is a codepage problem, that possible to.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 18:37:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285051#M116613</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-08-08T18:37:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285300#M116614</link>
      <description>&lt;P&gt;The Script is fine, your *.bat is wrong (open not files you want)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOR %%f in ("H:\test\Constructs\*.dwg") do "C:\Program Files\Autodesk\AutoCAD 2017\accoreconsole.exe" /i "%%f"&amp;nbsp; /s "H:\test\Constructs\test.scr" /l en-US&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check for "" and attached parameter /i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Test-scr:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;========================&lt;/P&gt;
&lt;P&gt;; set logfilepath for debugging and controle&lt;BR /&gt;LOGFILEPATH H:\test\Constructs\&lt;BR /&gt;; set logfile on for debugging and controle&lt;BR /&gt;LOGFILEON&lt;BR /&gt;; display file folder for debugging and controle&lt;BR /&gt;DWGPREFIX&lt;BR /&gt;; display file name for debugging and controle&lt;BR /&gt;DWGNAME&lt;BR /&gt;; display all Layers for debugging and controle&lt;BR /&gt;_-layer&lt;BR /&gt;?&lt;BR /&gt;*&lt;BR /&gt;&lt;BR /&gt;; Start rename!&lt;BR /&gt;_-rename&lt;BR /&gt;LA&lt;BR /&gt;Q-MACH-NMBR Q-MACH-LABL&lt;BR /&gt;;========SCR END=======&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But&lt;/STRONG&gt; your Script crashs if command _-rename try to rename an non existing Layer!&lt;/P&gt;
&lt;P&gt;You can create a Layer (if not exist) first&lt;/P&gt;
&lt;P&gt;_-Layer&lt;/P&gt;
&lt;P&gt;_new&lt;/P&gt;
&lt;P&gt;Q-MACH-NMBR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_-rename&lt;BR /&gt;LA&lt;BR /&gt;Q-MACH-NMBR Q-MACH-LABL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But&lt;/STRONG&gt; your Script crashs if command _-rename try oldname to existing Layername!&lt;/P&gt;
&lt;P&gt;You can use command &lt;A href="http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-0976544F-76F9-444C-86D3-91BEAABECCD8" target="_blank"&gt;LAYMRG&lt;/A&gt;.. ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But&lt;/STRONG&gt;&amp;nbsp; the best way is: A real clean customize program (lsp vba .net ..)&lt;/P&gt;
&lt;P&gt;Use /s "MyScript.scr" only for load your programs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;; ======== My personal /s "MyAccStartUp.scr ==========&lt;/P&gt;
&lt;P&gt;LOGFILEON&lt;BR /&gt;LOGFILEPATH "C:/TEMP/ACC/"&lt;BR /&gt;(load "c:\\TEMP\\ACC\\core-startup.lsp")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logfile for controle, load my standard .lsp file (for accoreconsole working)&lt;/P&gt;
&lt;P&gt;All other things I do behind this&lt;/P&gt;
&lt;P&gt;Accoreconsole starts from Shellcommand from whatever (acad,excel,outlook),&lt;/P&gt;
&lt;P&gt;a *.bat file like your example I use sometimes too for testing or for Explorer-context menu&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 19:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7285300#M116614</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-08-08T19:58:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7287196#M116615</link>
      <description>&lt;P&gt;This appears to work, my .dwgs have .log files appear under them. Although, the .dwgs do not have the changes saved to them, and withing the .log, it is claimed that the .dwgs are read only, even though they are not open anywhere else. Do you know what could cause this?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 12:52:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7287196#M116615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7287428#M116616</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV id="messagebodydisplay_0_4" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&lt;EM&gt;"Although, the .dwgs do not have the changes saved to them,"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;In your and my Script, there aren´t any SAVE-Statement, or?&lt;/P&gt;
&lt;P&gt;(good for testing, but changes nothing. Last Line in Script should be:&lt;/P&gt;
&lt;P&gt;_QSAVE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt; "and withing the .log, it is claimed that the .dwgs are read only, even though they are not open anywhere else. Do you know what could cause this?"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Re-start computer , try it again, I´m sure it works well.&lt;/EM&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Aug 2017 13:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7287428#M116616</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-08-09T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7288922#M116617</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The batch file is written as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOR %%f IN (H:\test\Constructs\*.dwg) DO START C:\"Program Files"\Autodesk\"AutoCAD 2017"\accoreconsole.exe %%f /s H:\test\Constructs\test.scr /l en-US&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The script reads as follows :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_-rename&lt;BR /&gt;LA&lt;BR /&gt;Q-MACH-NMBR Q-MACH-LABL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've checked numerous times, the names of the labels are correct. Is this an issue with system variables/settings within autocad/accoreconsole.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;BR /&gt;I see part of the conversation moved away from the original problem, but this might help with your original question.&lt;BR /&gt;&lt;BR /&gt;Layer names can have a space, so you should place the new layer name on a separate line and make sure there is a blank line at the end of the script.&lt;BR /&gt;&lt;BR /&gt;Also, be sure to save the changes after the script is done which someone else has pointed out to commit the changes to the file.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 21:17:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7288922#M116617</guid>
      <dc:creator>ambrosl</dc:creator>
      <dc:date>2017-08-09T21:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles running layer renaming script through accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7290473#M116618</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1706559"&gt;@ambrosl&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BR /&gt;I see part of the conversation moved away from the original problem, but this might help with your original question.&lt;BR /&gt;&lt;BR /&gt;Layer names can have a space, so you should place the new layer name on a separate line and make sure there is a blank line at the end of the script.&lt;BR /&gt;&lt;BR /&gt;Also, be sure to save the changes after the script is done which someone else has pointed out to commit the changes to the file.&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As was pointed out to me, make sure that layer names with spaces are wrapped in "" marks (ie. "My Layer") along with most text that has a space contained in it&amp;nbsp;when used in a script.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/troubles-running-layer-renaming-script-through-accoreconsole/m-p/7290473#M116618</guid>
      <dc:creator>ambrosl</dc:creator>
      <dc:date>2017-08-10T12:47:00Z</dc:date>
    </item>
  </channel>
</rss>

