<?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: Excel to Object GDL in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127499#M12994</link>
    <description>Hi.&lt;BR /&gt;
Another option would be using plain text files (maybe CSV) exported from excel; and use the channel-&amp;gt;OPEN command.&lt;BR /&gt;
It works nicely.</description>
    <pubDate>Mon, 27 Jan 2014 16:09:40 GMT</pubDate>
    <dc:creator>sinceV6</dc:creator>
    <dc:date>2014-01-27T16:09:40Z</dc:date>
    <item>
      <title>Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127497#M12992</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Has anyone successfully updated GDL parameters, from data from an excel spreadsheet?&lt;BR /&gt;
I gather this can be done via XML.&lt;BR /&gt;
Just trying to find an example file to determine if and how it can be done.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Jan 2014 00:33:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127497#M12992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T00:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127498#M12993</link>
      <description>Have look at this object:OpenLibraryGlobals.GSM&lt;BR /&gt;
You find it here:&lt;BR /&gt;
&lt;A href="http://www.opengdl.org/Default.aspx?tabid=4750&amp;amp;language=en-US" target="_blank"&gt;&lt;LINK_TEXT text="http://www.opengdl.org/Default.aspx?tab ... uage=en-US"&gt;http://www.opengdl.org/Default.aspx?tabid=4750&amp;amp;language=en-US&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
The object can't be placed in the floor plan, open it from the library.&lt;BR /&gt;
The library is type of .lcf, which must first be converted to a normal library)&lt;BR /&gt;
The object reads a projectinfo file (.xml-file which has been saved from Archicad project-info tab) ,and turns it into parameters' values. &lt;BR /&gt;
You can use this method for your custom objects.&lt;BR /&gt;
&lt;BR /&gt;
There´s another method in Special menu. You can export objects to xml and import them. Just manipulate the xml file and you get objects on the floorplan with parameters you have changed in the xml-file.&lt;BR /&gt;
Have nice moments with these.</description>
      <pubDate>Sun, 26 Jan 2014 13:42:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127498#M12993</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2014-01-26T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127499#M12994</link>
      <description>Hi.&lt;BR /&gt;
Another option would be using plain text files (maybe CSV) exported from excel; and use the channel-&amp;gt;OPEN command.&lt;BR /&gt;
It works nicely.</description>
      <pubDate>Mon, 27 Jan 2014 16:09:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127499#M12994</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-01-27T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127500#M12995</link>
      <description>I've used plain text files created from excel spreadsheets (either exported as tab-delimited-text or just copied and pasted into Notepad/TextEdit) to read a database of Keynotes. It's allowed me to edit a whole page of notes nicely formatted for the page in ArchiCAD by quick edits of a single text file or spreadsheet, then click on the Update button, and the whole thing gets updated and formatted. I use the same database for a Keynote label tool. I'm sure I've replicated what Cadimage did with their Keynotes tool (and in an inferior way) but by the time I found out they had one, I'd already written it.</description>
      <pubDate>Wed, 29 Jan 2014 10:00:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127500#M12995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127501#M12996</link>
      <description>Thankyou for everyone's responses&lt;BR /&gt;
I will give the plain text files a go first.  It sounds powerful and hopefully my brain will keep ticking after I work out the code</description>
      <pubDate>Wed, 29 Jan 2014 21:20:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127501#M12996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T21:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127502#M12997</link>
      <description>OK, sorry to reopen this.&lt;BR /&gt;
I have been searching forums, but still struggling.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is read the values of a tab illuminated text file&lt;BR /&gt;
example&lt;BR /&gt;
test.txt&lt;BR /&gt;
aa   11   22&lt;BR /&gt;
bb   33   44&lt;BR /&gt;
cc   55   66&lt;BR /&gt;
...   ...    ....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I might end up having 80 rows, and I want to read these just for a label.&lt;BR /&gt;
I am trying to work out how to use the open and input commands to read these values.&lt;BR /&gt;
Would I need to create parameters for each field I want to read.&lt;BR /&gt;
&lt;BR /&gt;
This is what I have put together, which doesnt work in the slightest&lt;BR /&gt;
&lt;BR /&gt;
ch1=OPEN("TEXT",test.txt,"SEPARATOR='\t',MODE=RO,LIBRARY")&lt;BR /&gt;
n=input(ch1,1,1,var1,var2,var3)&lt;BR /&gt;
n=input(ch1,1,2,var4,var5,var6)&lt;BR /&gt;
n=input(ch1,1,3,var7,var8,var9)&lt;BR /&gt;
close ch1&lt;BR /&gt;
&lt;BR /&gt;
I know I am way off, but struggling to understand the principals.&lt;BR /&gt;
There isn't enough object examples out there</description>
      <pubDate>Thu, 07 Aug 2014 00:11:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127502#M12997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-07T00:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127503#M12998</link>
      <description>Hi.&lt;BR /&gt;
This is one of the many code snippets found in this great forum. I've found it pretty handy to remember how to read from text files. The GDL reference is quite technical and complete, but not user friendly.&lt;BR /&gt;
&lt;BR /&gt;
Perhaps this can help you understand the basics and move from there... it sure did help me. I don't remember who posted it though.&lt;BR /&gt;

&lt;PRE&gt;! Example to read all string values from a file
! and use it in a value list
DIM sarray[]
! file in the library, containing parameter data
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
sarray[1] = ""
! collect all strings
DO
	n = INPUT (ch1, i, 1, var)
	IF n &amp;gt; 0 AND VARTYPE (var) = 2 THEN
		sarray&lt;J&gt; = var
		j = j + 1
	ENDIF
	i = i + 1
WHILE n &amp;gt; 0
CLOSE ch1
! parameter popup with strings&lt;/J&gt;&lt;/PRE&gt;

I used this to learn and script a "text notes" object that reads any tab-separated text file to show different tabulated data, regardless of row/column count.&lt;BR /&gt;
Hope it helps.&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 07 Aug 2014 23:33:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127503#M12998</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2014-08-07T23:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127504#M12999</link>
      <description>Coming back to this post.&lt;BR /&gt;
Hoping someone can help me.&lt;BR /&gt;
&lt;BR /&gt;
I cannot work out how to read a text file into a pulldown window in an object.&lt;BR /&gt;
Is that possible? The pulldown window may have a different number of fields depending on the text file, not sure if this is an issue setting the size of the array. I assume arrays are static sizes.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be appreciated&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
      <pubDate>Mon, 27 Nov 2017 05:11:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127504#M12999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T05:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127505#M13000</link>
      <description>This might be of use. &lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-read-and-write-text-files" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/tips-and-tric ... text-files"&gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-read-and-write-text-files&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Tom wrote:&lt;BR /&gt;Coming back to this post.&lt;BR /&gt;
Hoping someone can help me.&lt;BR /&gt;
&lt;BR /&gt;
I cannot work out how to read a text file into a pulldown window in an object.&lt;BR /&gt;
Is that possible? The pulldown window may have a different number of fields depending on the text file, not sure if this is an issue setting the size of the array. I assume arrays are static sizes.&lt;BR /&gt;
&lt;BR /&gt;
Any help would be appreciated&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 12:39:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127505#M13000</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-11-27T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127506#M13001</link>
      <description>Thankyou,&lt;BR /&gt;
I was referring to this but it seems to have a fixed array size of 7.&lt;BR /&gt;
Makes me think I cannot have a pulldown box with a different size depending on the size of input text file&lt;BR /&gt;
Tom</description>
      <pubDate>Mon, 27 Nov 2017 21:27:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127506#M13001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T21:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Object GDL</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127507#M13002</link>
      <description>&lt;BLOCKQUOTE&gt;Tom wrote:&lt;BR /&gt;Thankyou,&lt;BR /&gt;
I was referring to this but it seems to have a fixed array size of 7.&lt;BR /&gt;
Makes me think I cannot have a pulldown box with a different size depending on the size of input text file&lt;BR /&gt;
Tom&lt;/BLOCKQUOTE&gt;

Here is what I use which gives a drop down box.&lt;BR /&gt;

&lt;PRE&gt;DIM sarray[]
! file in the library, containing parameter data
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
sarray[1] = ""
! collect all strings
DO
    n = INPUT (ch1, i, 1, var)
    IF n &amp;gt; 0 AND VARTYPE (var) = 2 THEN
        sarray&lt;J&gt; = var
        j = j + 1
    ENDIF
    i = i + 1
WHILE n &amp;gt; 0
CLOSE ch1
! parameter popup with strings read from the file
VALUES "RefNote" sarray&lt;/J&gt;&lt;/PRE&gt;

Create RefNote as a parameter and it should work for you.</description>
      <pubDate>Tue, 28 Nov 2017 17:13:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Excel-to-Object-GDL/m-p/127507#M13002</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-11-28T17:13:32Z</dc:date>
    </item>
  </channel>
</rss>

