<?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 GDL DATA I/O ADD-ON for Parameter Values in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143517#M20307</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;After some years of watching this forum, i have a question regarding the GDL Data Add-On in Parameter script.&lt;BR /&gt;
&lt;BR /&gt;
Actual i'm writing a new zonestamp, where i want to read the Parameter Values from an external .txt file.&lt;BR /&gt;
&lt;BR /&gt;
Thank to Cookbook the first step is working without problems.&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Master Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
dim values_nutzung_01[]&lt;BR /&gt;
FOR I=1 TO 1&lt;BR /&gt;
	values_nutzung_01&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;=".........."&lt;BR /&gt;
NEXT i&lt;BR /&gt;
&lt;BR /&gt;
ch1 = OPEN ("TEXT", nutzung_01.txt,"SEPARATOR ='#', MODE = RO,LIBRARY")&lt;BR /&gt;
	linecount=1&lt;BR /&gt;
	nr = INPUT (ch1 ,linecount, 1, v1,v2) &lt;BR /&gt;
	WHILE nr&amp;gt;0 DO&lt;BR /&gt;
		values_nutzung_01[linecount]=v1&lt;BR /&gt;
		linecount=linecount+1&lt;BR /&gt;
		nr = INPUT (ch1 ,linecount, 1, v1)&lt;BR /&gt;
	ENDWHILE&lt;BR /&gt;
close ch1&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Parameter Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
VALUES "nutz_01"	"Keiner",para_nutzung_01&lt;BR /&gt;
&lt;BR /&gt;
But for a second paramter i want to have only a selection of values in the .txt file as Values in my object.&lt;BR /&gt;
&lt;BR /&gt;
For example when the first parameter "nutz_01" is set to 3.1 the second parameter should have all values that starts with 3.1 in the text file.&lt;BR /&gt;
(f.e "3.1 Office", "3.1 Storage" but not "3.2 Restrooms")&lt;BR /&gt;
&lt;BR /&gt;
I have tried to realise this with:&lt;BR /&gt;
....&lt;BR /&gt;
ch1 = OPEN ("DATA", filename,"SEPARATOR ='#', MODE = RO,LIBRARY")&lt;BR /&gt;
        linecount=1&lt;BR /&gt;
	searchfield='3.1'&lt;BR /&gt;
	nr = INPUT (ch1 ,linecount, 1, v1,v2) &lt;BR /&gt;
	WHILE nr&amp;gt;0 DO&lt;BR /&gt;
		values_nutzung_02[linecount]=v1&lt;BR /&gt;
		linecount=linecount+1&lt;BR /&gt;
		nr = INPUT (ch1 ,linecount, 1, v1,v2)&lt;BR /&gt;
	ENDWHILE&lt;BR /&gt;
close ch1&lt;BR /&gt;
&lt;BR /&gt;
But with this i get only the last with 3.1 beginning value and not all.&lt;BR /&gt;
I know the problem i that linecount isn't working, but i have no idea&lt;BR /&gt;
how i can solve it.&lt;BR /&gt;
&lt;BR /&gt;
I hope some of you can comprehend my problem and have an idea&lt;BR /&gt;
for a solution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 May 2010 15:06:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-05-19T15:06:11Z</dc:date>
    <item>
      <title>GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143517#M20307</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;After some years of watching this forum, i have a question regarding the GDL Data Add-On in Parameter script.&lt;BR /&gt;
&lt;BR /&gt;
Actual i'm writing a new zonestamp, where i want to read the Parameter Values from an external .txt file.&lt;BR /&gt;
&lt;BR /&gt;
Thank to Cookbook the first step is working without problems.&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Master Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
dim values_nutzung_01[]&lt;BR /&gt;
FOR I=1 TO 1&lt;BR /&gt;
	values_nutzung_01&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;=".........."&lt;BR /&gt;
NEXT i&lt;BR /&gt;
&lt;BR /&gt;
ch1 = OPEN ("TEXT", nutzung_01.txt,"SEPARATOR ='#', MODE = RO,LIBRARY")&lt;BR /&gt;
	linecount=1&lt;BR /&gt;
	nr = INPUT (ch1 ,linecount, 1, v1,v2) &lt;BR /&gt;
	WHILE nr&amp;gt;0 DO&lt;BR /&gt;
		values_nutzung_01[linecount]=v1&lt;BR /&gt;
		linecount=linecount+1&lt;BR /&gt;
		nr = INPUT (ch1 ,linecount, 1, v1)&lt;BR /&gt;
	ENDWHILE&lt;BR /&gt;
close ch1&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Parameter Script:&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
VALUES "nutz_01"	"Keiner",para_nutzung_01&lt;BR /&gt;
&lt;BR /&gt;
But for a second paramter i want to have only a selection of values in the .txt file as Values in my object.&lt;BR /&gt;
&lt;BR /&gt;
For example when the first parameter "nutz_01" is set to 3.1 the second parameter should have all values that starts with 3.1 in the text file.&lt;BR /&gt;
(f.e "3.1 Office", "3.1 Storage" but not "3.2 Restrooms")&lt;BR /&gt;
&lt;BR /&gt;
I have tried to realise this with:&lt;BR /&gt;
....&lt;BR /&gt;
ch1 = OPEN ("DATA", filename,"SEPARATOR ='#', MODE = RO,LIBRARY")&lt;BR /&gt;
        linecount=1&lt;BR /&gt;
	searchfield='3.1'&lt;BR /&gt;
	nr = INPUT (ch1 ,linecount, 1, v1,v2) &lt;BR /&gt;
	WHILE nr&amp;gt;0 DO&lt;BR /&gt;
		values_nutzung_02[linecount]=v1&lt;BR /&gt;
		linecount=linecount+1&lt;BR /&gt;
		nr = INPUT (ch1 ,linecount, 1, v1,v2)&lt;BR /&gt;
	ENDWHILE&lt;BR /&gt;
close ch1&lt;BR /&gt;
&lt;BR /&gt;
But with this i get only the last with 3.1 beginning value and not all.&lt;BR /&gt;
I know the problem i that linecount isn't working, but i have no idea&lt;BR /&gt;
how i can solve it.&lt;BR /&gt;
&lt;BR /&gt;
I hope some of you can comprehend my problem and have an idea&lt;BR /&gt;
for a solution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 May 2010 15:06:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143517#M20307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T15:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143518#M20308</link>
      <description>Hi,&lt;BR /&gt;
I can't tell you in which direction you be should looking, I am pretty much in the same situation. I'm trying to use the DATA ADD-ON and the TEXT ADD-ON for my own projects. But is really hard due to the lack of information provided by Graphisoft and third parties.&lt;BR /&gt;
I have the GDL Cookbook 3.0 and the GDL Handbook (cadimage), and a couple of websites: &lt;A href="http://www.selfgdl.de/" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://www.selfgdl.de/" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;http://www.selfgdl.de/&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;http://www.selfgdl.de/&lt;E&gt;&lt;/E&gt;, &lt;A href="http://www.GDLCentral.com" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://www.GDLCentral.com" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;http://www.GDLCentral.com&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;http://www.GDLCentral.com&lt;E&gt;&lt;/E&gt;.&lt;BR /&gt;
As you can see, not too much. &lt;BR /&gt;
I can't find objects using this DATA/TEXT add-on, it would be helpful to open the script and take look.&lt;BR /&gt;
Please stay in touch, and please share your knowledge on this. I would do it I if I knew something more precise about it.&lt;BR /&gt;
&lt;BR /&gt;
Good luck with your project&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Nando M</description>
      <pubDate>Fri, 10 Sep 2010 14:25:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143518#M20308</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2010-09-10T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143519#M20309</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Here is a kind of value list filler object. I put in two alternative ways &lt;BR /&gt;
of reading / mining the data from the txt file. Hope someone finds it &lt;BR /&gt;
useful.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
!-- four string type parameters needed;
!-- "valuelist_a", "valuelist_b", "valuelist_c", "search"

!-- the code can be a master or value script

dim value_a[], value_b[], value_c[]

filename= "Table.txt"
ch1=OPEN("TEXT",filename,"SEPARATOR='\t',MODE=RO,LIBRARY")

	!--counting the total number of rows
	do
		row= row+1
		n=INPUT(ch1,row,1,string1)
	while n&amp;gt;-1


	!--reading the first column for valuelist_a
	for k= 1 to row-1
		n=INPUT(ch1,k,1,string1)
		value_a&lt;K&gt;= string1
	next k

	!--reading the first column for valuelist_b if starts with the search string (valuelist_a)
	len= strlen(valuelist_a)
	for k= 1 to row-1
		n=INPUT(ch1,k,1,string1)
		if strsub(string1, 1, len)= valuelist_a then
			r= r+1
			value_b&lt;R&gt;= string1
		endif
	next k


	!--reading both columns for valuelist_c if contains the search string
	for k= 1 to row-1
		n=INPUT(ch1,k,1,string1,string2)
		if strstr(string1+string2, search) then
			s= s+1
			value_c&lt;S&gt;= string1+ " - "+ string2
		endif
	next k

CLOSE (ch1)

values "valuelist_a" value_a, custom
values "valuelist_b" value_b
values "valuelist_c" value_c

&lt;/S&gt;&lt;/R&gt;&lt;/K&gt;&lt;/PRE&gt;

Regards, Juha</description>
      <pubDate>Fri, 10 Sep 2010 22:10:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143519#M20309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-10T22:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143520#M20310</link>
      <description>Here is the library.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Regards, Juha</description>
      <pubDate>Fri, 10 Sep 2010 22:14:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143520#M20310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-10T22:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143521#M20311</link>
      <description>Thanks Juha.&lt;BR /&gt;
I am having problems with the "Dialog" parameter. It works for AC12, and 13, not for 14.&lt;BR /&gt;
I can't select/open any file with the open dialog window.&lt;BR /&gt;
&lt;BR /&gt;
Anyone else experiencing this problem?&lt;BR /&gt;
&lt;BR /&gt;
regards&lt;BR /&gt;
&lt;BR /&gt;
Nando</description>
      <pubDate>Mon, 13 Sep 2010 16:30:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143521#M20311</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2010-09-13T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143522#M20312</link>
      <description>This is actually a very good piece of code.&lt;BR /&gt;
I'm adding it to my "Specifications Label" object, and it looks very promising.&lt;BR /&gt;
I will add it to the GDL depository when finished&lt;BR /&gt;
&lt;BR /&gt;
Thanks  for sharing it Juha&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
&lt;BR /&gt;
Nando</description>
      <pubDate>Mon, 13 Sep 2010 18:25:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143522#M20312</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2010-09-13T18:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143523#M20313</link>
      <description>HI&lt;BR /&gt;
I am struggling with the INPUT and OPEN as well, but it seems that you have gotten a bit further than I am.&lt;BR /&gt;
I have some basic problems understanding the basics. &lt;BR /&gt;
I understand the OPEN command but I am lost in the INPUT. It seems that it only works with a statement called "n" or "nr" what is that good for?&lt;BR /&gt;
The GDL reference gives an example:&lt;BR /&gt;
&lt;BR /&gt;
nr = INPUT (ch1, 1, 1, v1, v2, v3) ! input of three values from the first ! column of the&lt;BR /&gt;
first row&lt;BR /&gt;
PRINT nr, v1, v2, v3&lt;BR /&gt;
&lt;BR /&gt;
when I type in these lines in the Master script I get an error message saying that the variables are uninitialized - why is that?</description>
      <pubDate>Mon, 13 Sep 2010 19:32:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143523#M20313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-13T19:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: GDL DATA I/O ADD-ON for Parameter Values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143524#M20314</link>
      <description>hi "hvid"&lt;BR /&gt;
the sequence of commands open and input work together, OPEN just makes the call, while INPUT ask for the specific cell (this row, that column, and name it like this)&lt;BR /&gt;
It is not 2+2... Is not vary clear for me either, but If I finish soon with my problems here, let say this week, I'll try to do some sort of tutorial, I'll make it public here.&lt;BR /&gt;
&lt;BR /&gt;
regards&lt;BR /&gt;
&lt;BR /&gt;
Nando</description>
      <pubDate>Mon, 13 Sep 2010 21:45:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-DATA-I-O-ADD-ON-for-Parameter-Values/m-p/143524#M20314</guid>
      <dc:creator>Nando Mogollon</dc:creator>
      <dc:date>2010-09-13T21:45:07Z</dc:date>
    </item>
  </channel>
</rss>

