<?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: gdl scripts problems in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177158#M23693</link>
    <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;Ok Alex... Everything is on the right place.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Don't know much about I/O operations...&lt;BR /&gt;
&lt;BR /&gt;
But... First thing I have noticed is that you are not using the appropriate filter... As told in the GDL Manual:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;&lt;FONT size="150"&gt;Specifying Folder&lt;/FONT&gt;&lt;BR /&gt;
channel = OPEN (filter, filename, paramstring)&lt;BR /&gt;
channel : folder id&lt;BR /&gt;
filter : &lt;/FONT&gt;&lt;FONT color="#ff001b"&gt;the internal name of the Add-On, in this case "FileMan"&lt;/FONT&gt;&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;filename : - the name of folder to be scanned (OS dependent path) - folder id string (in&lt;BR /&gt;
DIALOG mode - see later)&lt;BR /&gt;
paramstring : Add-on specific parameter.&lt;BR /&gt;
The parameters in paramString must be separated by commas (,).&lt;BR /&gt;
1. parameter: FILES/FOLDERS&lt;BR /&gt;
What would you like to search for?&lt;BR /&gt;
2. parameter (optional): DIALOG&lt;BR /&gt;
Indicates that the folder is given by a file id string instead of a file path.&lt;BR /&gt;
When this is the case, at the first time (and each time when the corresponding file path seems&lt;BR /&gt;
to be invalid) the user will be faced a dialog box to set the id string - file path&lt;BR /&gt;
correspondence, which will be stored.&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
And you used "TEXT"...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
If you post the object folder here I'll take a look later...&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 28 Aug 2009 11:17:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-28T11:17:49Z</dc:date>
    <item>
      <title>gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177153#M23688</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I can not understand what a script does not work in GDL on &lt;BR /&gt;
opening of file&lt;BR /&gt;
Here sample program with gdl.pdf&lt;BR /&gt;
pg 309&lt;BR /&gt;
&lt;BR /&gt;
Example:&lt;BR /&gt;
Object of GDL, which copies content of file of "f1" in the files of "f2" and "f3", however here writes down values "f1",&lt;BR /&gt;
part character tabulations, in the separate lines of both files of "f2" and "f3".&lt;BR /&gt;
-----------------------------------------------------------------------&lt;BR /&gt;
ch1 = open ("TEXT", "f1", "mode = ro")&lt;BR /&gt;
ch2 = open ("TEXT", "f2", "separator = '\n', mode = wo")&lt;BR /&gt;
ch3 = open ("TEXT", "f3", "separator = '\n', mode = wo")&lt;BR /&gt;
i = 1&lt;BR /&gt;
1:&lt;BR /&gt;
n = input (ch1, i, 1, var1, var2, var3, var4)&lt;BR /&gt;
if n &amp;lt;&amp;gt; -1 then&lt;BR /&gt;
output ch2, 1, 0, var1, var2, var3, var4&lt;BR /&gt;
output ch3, 1, 0, var1, var2, var3, var4&lt;BR /&gt;
i = i + 1&lt;BR /&gt;
goto 1&lt;BR /&gt;
else&lt;BR /&gt;
goto 2&lt;BR /&gt;
endif&lt;BR /&gt;
2:&lt;BR /&gt;
close ch1&lt;BR /&gt;
close ch2&lt;BR /&gt;
close ch3&lt;BR /&gt;
--------------------------------------------------------------------------------&lt;BR /&gt;
 not FIND FILE  f1....&lt;BR /&gt;
but file I put  in the root of archicad and in a &lt;BR /&gt;
that place where GDL model located , the name of file was written by &lt;BR /&gt;
f1, f1.txt and even f1.text&lt;BR /&gt;
&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" style="display : inline;" /&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Aug 2009 06:09:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177153#M23688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T06:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177154#M23689</link>
      <description>Hi Alex,&lt;BR /&gt;
&lt;BR /&gt;
Its not enought to put the txt files in the AC root or where the project file is located...&lt;BR /&gt;
&lt;BR /&gt;
You have to load them in the project file using the "Library Manager" as a regular object...&lt;BR /&gt;
&lt;BR /&gt;
Did you do that?...&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Fri, 28 Aug 2009 08:49:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177154#M23689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177155#M23690</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;Hi Alex,&lt;BR /&gt;
&lt;BR /&gt;
Its not enought to put the txt files in the AC root or where the project file is located...&lt;BR /&gt;
&lt;BR /&gt;
You have to load them in the project file using the "Library Manager" as a regular object...&lt;BR /&gt;
&lt;BR /&gt;
Did you do that?...&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 28 Aug 2009 09:22:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177155#M23690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177156#M23691</link>
      <description>Ok Alex... Everything is on the right place.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Don't know much about I/O operations...&lt;BR /&gt;
&lt;BR /&gt;
But... First thing I have noticed is that you are not using the appropriate filter... As told in the GDL Manual:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;&lt;FONT size="150"&gt;Specifying Folder&lt;/FONT&gt;&lt;BR /&gt;
channel = OPEN (filter, filename, paramstring)&lt;BR /&gt;
channel : folder id&lt;BR /&gt;
filter : &lt;/FONT&gt;&lt;FONT color="#ff001b"&gt;the internal name of the Add-On, in this case "FileMan"&lt;/FONT&gt;&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;filename : - the name of folder to be scanned (OS dependent path) - folder id string (in&lt;BR /&gt;
DIALOG mode - see later)&lt;BR /&gt;
paramstring : Add-on specific parameter.&lt;BR /&gt;
The parameters in paramString must be separated by commas (,).&lt;BR /&gt;
1. parameter: FILES/FOLDERS&lt;BR /&gt;
What would you like to search for?&lt;BR /&gt;
2. parameter (optional): DIALOG&lt;BR /&gt;
Indicates that the folder is given by a file id string instead of a file path.&lt;BR /&gt;
When this is the case, at the first time (and each time when the corresponding file path seems&lt;BR /&gt;
to be invalid) the user will be faced a dialog box to set the id string - file path&lt;BR /&gt;
correspondence, which will be stored.&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
And you used "TEXT"...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
If you post the object folder here I'll take a look later...</description>
      <pubDate>Fri, 28 Aug 2009 10:01:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177156#M23691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177157#M23692</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;Hi Alex,&lt;BR /&gt;
&lt;BR /&gt;
Its not enought to put the txt files in the AC root or where the project file is located...&lt;BR /&gt;
&lt;BR /&gt;
You have to load them in the project file using the "Library Manager" as a regular object...&lt;BR /&gt;
&lt;BR /&gt;
Did you do that?...&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 28 Aug 2009 10:15:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177157#M23692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177158#M23693</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;Ok Alex... Everything is on the right place.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Don't know much about I/O operations...&lt;BR /&gt;
&lt;BR /&gt;
But... First thing I have noticed is that you are not using the appropriate filter... As told in the GDL Manual:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;&lt;FONT size="150"&gt;Specifying Folder&lt;/FONT&gt;&lt;BR /&gt;
channel = OPEN (filter, filename, paramstring)&lt;BR /&gt;
channel : folder id&lt;BR /&gt;
filter : &lt;/FONT&gt;&lt;FONT color="#ff001b"&gt;the internal name of the Add-On, in this case "FileMan"&lt;/FONT&gt;&lt;BR /&gt;
&lt;FONT color="#005bff"&gt;filename : - the name of folder to be scanned (OS dependent path) - folder id string (in&lt;BR /&gt;
DIALOG mode - see later)&lt;BR /&gt;
paramstring : Add-on specific parameter.&lt;BR /&gt;
The parameters in paramString must be separated by commas (,).&lt;BR /&gt;
1. parameter: FILES/FOLDERS&lt;BR /&gt;
What would you like to search for?&lt;BR /&gt;
2. parameter (optional): DIALOG&lt;BR /&gt;
Indicates that the folder is given by a file id string instead of a file path.&lt;BR /&gt;
When this is the case, at the first time (and each time when the corresponding file path seems&lt;BR /&gt;
to be invalid) the user will be faced a dialog box to set the id string - file path&lt;BR /&gt;
correspondence, which will be stored.&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
And you used "TEXT"...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
If you post the object folder here I'll take a look later...&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 28 Aug 2009 11:17:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177158#M23693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-28T11:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177159#M23694</link>
      <description>This example in PDF document  does work?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sun, 30 Aug 2009 09:23:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177159#M23694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-30T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177160#M23695</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I do not know about the PDF manual, but would suggest declaring the file names first and then using the LIBRARY keyword meaning that the files are in the active libraries. I tested and this works, just remember to load the file library.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;!--&amp;gt; file names added
f1= "File01.txt"
f2= "File02.txt"
f3= "File03.txt"

!--&amp;gt; LIBRARY keyword added
ch1 = open ("TEXT", f1, "mode = ro,LIBRARY")
ch2 = open ("TEXT", f2, "separator = '\n', mode = wo,LIBRARY")
ch3 = open ("TEXT", f3, "separator = '\n', mode = wo,LIBRARY")


!--&amp;gt; script continues as before
i = 1
1:
n = input (ch1, i, 1, var1, var2, var3, var4)
if n &amp;lt;&amp;gt; -1 then
output ch2, 1, 0, var1, var2, var3, var4
output ch3, 1, 0, var1, var2, var3, var4
i = i + 1
goto 1
else
goto 2
endif
2:
close ch1
close ch2
close ch3
end&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.</description>
      <pubDate>Mon, 31 Aug 2009 20:53:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177160#M23695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-31T20:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: gdl scripts problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177161#M23696</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I do not know about the PDF manual, but would suggest declaring the file names first and then using the LIBRARY keyword meaning that the files are in the active libraries. I tested and this works, just remember to load the file library.&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;!--&amp;gt; file names added
f1= "File01.txt"
f2= "File02.txt"
f3= "File03.txt"

!--&amp;gt; LIBRARY keyword added
ch1 = open ("TEXT", f1, "mode = ro,LIBRARY")
ch2 = open ("TEXT", f2, "separator = '\n', mode = wo,LIBRARY")
ch3 = open ("TEXT", f3, "separator = '\n', mode = wo,LIBRARY")


!--&amp;gt; script continues as before
i = 1
1:
n = input (ch1, i, 1, var1, var2, var3, var4)
if n &amp;lt;&amp;gt; -1 then
output ch2, 1, 0, var1, var2, var3, var4
output ch3, 1, 0, var1, var2, var3, var4
i = i + 1
goto 1
else
goto 2
endif
2:
close ch1
close ch2
close ch3
end&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;/BLOCKQUOTE&gt;

It Works! Thank you!</description>
      <pubDate>Wed, 02 Sep 2009 06:14:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-scripts-problems/m-p/177161#M23696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-02T06:14:32Z</dc:date>
    </item>
  </channel>
</rss>

