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

Array from text file problem

JGoode
Advocate
DIM sarray[]
var = ""
filename = "ProjectNotes.txt"
ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY")
i = 1
j = 1
y = 1
sarray=""
repeat
	n = INPUT (ch1, y, 1, var)
	pos = STRSTR (var, "EF-25")
	L1 = STRSUB (var, 1, pos)
	
	sarray = var
	j=j +1
	i=i+1
	y=y+1
until var = prefix
CLOSE ch1
VALUES "refnote" sarray
This repeats over and over thus causing a crash but I think it’s something along the lines that I am going for. I want it to repeat until one of the lines in my contains “EF-25” then not include that line. If anyone can help me solve it then I would really appreciate it!

If it can't be solved then I'd appreciate knowing that too, or if what I am trying to do can't be achieved.

Thanks
ArchiCAD 23

Windows 10
1 REPLY 1
I usually load the whole list of the "header column" first, and then analyze the content, and on the second open I open the proper row data. (I use it for localization and for finish definition)
See the steel beam/column objects - that is a good working example.

Piotr