BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

reading text file in GDL

David Shorter
Advisor
I am having a problem with reading a text file
I am trying to use the TEXT extension and the DIALOG option but ArchiCAD refused to 'see' the text file and says its looking for a "GDL TEXT DATA FILE" and won't see the txt file.
Mac El Capitan and AC 19 latest build
It will see the file OK using the data extension but I need the TEXT option
as you can see the script is straight out of the GDL manual
Any ideas?

ch1 = OPEN ("text", "SHEET INDEX - AllLayouts", "SEPARATOR = '\n', MODE = RO, DIALOG")
nr = INPUT (ch1, 1, 1, v1, v2, v3) ! input of three values
! from the firstcolumn of the first row
PRINT nr, v1, v2, v3
CLOSE CH1
Archicad 4.1 to 27 Apple Silicon
you can't build a line
Mac Studio
iPad Pro
iPhone
3 REPLIES 3
David Shorter
Advisor
More on this issue
It seems I can create a txt file using the TEXT extension which is capable of being opened and read by the TEXT extension but if I export/save as a tab delimited txt file from the IS ArchiCADs own TEXT extension cannot see it.
If I create file using the TEXT extension and copy and paste the data from the export, then I can read this using the TEXT extension although even this seems to have other problems.
Is this something to do with the changes in GDL in 19/20?
Archicad 4.1 to 27 Apple Silicon
you can't build a line
Mac Studio
iPad Pro
iPhone
Anonymous
Not applicable
Hello,

I think DIALOG option has always been troublesome,
try with LIBRARY instead (the txt-file is placed in
the active libraries).
Alex Moruzzi
Participant
It seems to me you're doing a mix between Data and Text extensions ...
Archicad 19 - OSX10.10 - MBP early 2011 16G/ssd
Learn and get certified!