<?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: Modifying text file in an embedded library in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-text-file-in-an-embedded-library/m-p/275320#M7976</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I think writing to a file inside a LCF (library container file) &lt;BR /&gt;
is not possible. Try writing a separate txt-file.</description>
    <pubDate>Mon, 11 Apr 2016 19:52:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-11T19:52:47Z</dc:date>
    <item>
      <title>Modifying text file in an embedded library</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-text-file-in-an-embedded-library/m-p/275319#M7975</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I'm trying to have a read/write text file in an embedded library *.lcf file in order to look-up/update some "global" values for the library (not individual *.pln files)&lt;BR /&gt;
&lt;BR /&gt;
According to the ArchiCAD GDL help page:&lt;BR /&gt;
"If the LIBRARY keyword is present, the data file must be in the loaded library.&lt;BR /&gt;
Opening data file from the loaded library for reading is possible from all scripts, but &lt;B&gt;writing is only enabled in the parameter&lt;/B&gt;, user interface and property scripts."&lt;BR /&gt;
&lt;BR /&gt;
Initially I had put the following code into the parameter script:&lt;BR /&gt;
&lt;BR /&gt;
IF reset THEN !!trigger parameter&lt;BR /&gt;
&lt;BR /&gt;
ch2=OPEN("TEXT","lic.txt","SEPARATOR='\t',MODE=WO,LIBRARY")&lt;BR /&gt;
OUTPUT ch2,1,1,"d", "test message", "d", "d"&lt;BR /&gt;
CLOSE (ch2)&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
I get the following error:&lt;BR /&gt;
&lt;BR /&gt;
Open error&lt;BR /&gt;
while operating on file 'lic.txt'.&lt;BR /&gt;
Nonexistent channel&lt;BR /&gt;
 at line 4 in the Parameter script of file Unitary Reset.gsm. (9835-1 Page108)&lt;BR /&gt;
Nonexistent channel&lt;BR /&gt;
 at line 5 in the Parameter script of file Unitary Reset.gsm. (9835-1 Page108)&lt;BR /&gt;
&lt;BR /&gt;
Then, I had put the opening of the channel (first line) into the Master script and get the following error:&lt;BR /&gt;
"Open error&lt;BR /&gt;
while operating on file 'lic.txt'.&lt;BR /&gt;
Cannot modify the file (lic.txt) in embedded library in 2D script type."&lt;BR /&gt;
&lt;BR /&gt;
What am I doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your advice in advance&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Apr 2016 07:26:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modifying-text-file-in-an-embedded-library/m-p/275319#M7975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-11T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying text file in an embedded library</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Modifying-text-file-in-an-embedded-library/m-p/275320#M7976</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I think writing to a file inside a LCF (library container file) &lt;BR /&gt;
is not possible. Try writing a separate txt-file.</description>
      <pubDate>Mon, 11 Apr 2016 19:52:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Modifying-text-file-in-an-embedded-library/m-p/275320#M7976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-11T19:52:47Z</dc:date>
    </item>
  </channel>
</rss>

