We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2012-10-05 01:36 AM
!-- Getting NCC Table D1.13 valuesNot having done much work yet with arrays I'm now stuck as to the next step to use the value the user selects from the drop down for NCC_TableD113_Use to select the matching value for the NCC_TableD113_Rate.
dim value_use[], value_rate[]
filename= "NCCTableD113.txt"
ch1=OPEN("TEXT",filename,"SEPARATOR='\t',MODE=RO,LIBRARY")
!--counting the total number of rows
row=0
do
row= row+1
n=INPUT(ch1,row,1,string1)
while n>-1
!--reading the first column for NCC_TableD113_Use
for k= 1 to row-1
n=INPUT(ch1,k,1,string1)
value_use= string1
next k
!--reading the second column for NCC_TableD113_Rate
for m= 1 to row-1
n=INPUT(ch1,m,2,string2)
value_rate= string2
next m
CLOSE (ch1)
VALUES "NCC_TableD113_Use" value_use, custom
2012-10-06 08:33 PM
!-- Getting NCC Table D1.13 values dim value_use[], value_rate[] filename= "NCCTableD113.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>-1 !--reading the first column for NCC_TableD113_Use for k= 1 to row-1 n=INPUT(ch1,k,1,string1) value_use= string1 next k values "NCC_TableD113_Use" value_use, custom !--reading the second column for NCC_TableD113_Rate for k= 1 to row-1 n=INPUT(ch1,k,1,string1,string2) if NCC_TableD113_Use = string1 then values "NCC_TableD113_Rate" string2 endif next k CLOSE (ch1)
2012-10-08 01:13 AM
2012-10-08 06:48 PM