<?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: .SCR to Import and Restore Layer State in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781493#M94419</link>
    <description>&lt;P&gt;I don't use Scripts much, but as a guess:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help doesn't say anything about it, but could this be as in AutoLisp, that filepath separators need to be either &lt;EM&gt;double&lt;/EM&gt;&amp;nbsp; backslashes or single &lt;EM&gt;forward&lt;/EM&gt;&amp;nbsp; slashes?&amp;nbsp; That's needed in AutoLisp because a single backslash is a marker for a following control character, but I'm not sure about Scripts.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 17:52:45 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-10-02T17:52:45Z</dc:date>
    <item>
      <title>.SCR to Import and Restore Layer State</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781469#M94418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a script to import and restore a .las file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;-Layer
A
I
C:\Users\Me\Example\Example.las
R
Example.las
(Space/Enter)
(Space/Enter)
(Space/Enter)
(Space/Enter)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This works when I do it manually, but when running the script it gets an error after executing "I".&lt;/P&gt;&lt;P&gt;It defaults to the file path of the file I'm trying to run the script on rather than the file path in the script. There is not an extra space after "I".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea of what I'm doing wrong? Also, I am using AutoCAD LT, so I can't switch to a LISP solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 17:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781469#M94418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-02T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: .SCR to Import and Restore Layer State</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781493#M94419</link>
      <description>&lt;P&gt;I don't use Scripts much, but as a guess:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help doesn't say anything about it, but could this be as in AutoLisp, that filepath separators need to be either &lt;EM&gt;double&lt;/EM&gt;&amp;nbsp; backslashes or single &lt;EM&gt;forward&lt;/EM&gt;&amp;nbsp; slashes?&amp;nbsp; That's needed in AutoLisp because a single backslash is a marker for a following control character, but I'm not sure about Scripts.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 17:52:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781493#M94419</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-10-02T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: .SCR to Import and Restore Layer State</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781507#M94420</link>
      <description>&lt;P&gt;There was a space in the name of a folder in the file path.&lt;/P&gt;&lt;P&gt;Enclosing the entire filepath in quotes solved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 18:01:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781507#M94420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-02T18:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: .SCR to Import and Restore Layer State</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781512#M94421</link>
      <description>&lt;P&gt;It was because the real filepath I was using had a space in one of the folder names. I closed that entire line in quotes, solving my issue. Thanks for replying though!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 18:02:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-to-import-and-restore-layer-state/m-p/9781512#M94421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-02T18:02:35Z</dc:date>
    </item>
  </channel>
</rss>

