2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2014-01-23 01:33 AM
2017-11-28 06:13 PM
Tom wrote:Here is what I use which gives a drop down box.
Thankyou,
I was referring to this but it seems to have a fixed array size of 7.
Makes me think I cannot have a pulldown box with a different size depending on the size of input text file
Tom
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 > 0 AND VARTYPE (var) = 2 THEN sarrayCreate RefNote as a parameter and it should work for you.= var j = j + 1 ENDIF i = i + 1 WHILE n > 0 CLOSE ch1 ! parameter popup with strings read from the file VALUES "RefNote" sarray