Can anyone give me some insight into Strings? I cant seem to grasp what the underlying concept in using them.
For example, the following code is for a title marker I am TRYING to make. The marker detects the drawings scale and determines what scale bar to show.
n = SPLIT (AC_DrawingScale, "%n:%n", num1,notUsed, num2)
IF num2=100 THEN
MUL2 100,100
GOSUB 100:
ENDIF
IF num2=200 THEN
GOSUB 200:
ENDIF
IF num2=500 THEN
GOSUB 500:
ENDIF
The GOSUBS refer to the various scale bars that I have drawn. I can’t claim credit for the SPLIT command- I pulled that out of another title marker (which is probably part of my problem). Can someone explain to me what I need to make this work and/or why this won’t work? The way I understand it is that num1 and num2 are return the values of scale (1:100 into num1:num2). If num2 =100 then the 1:100 scale is displayed and so on.
Cheers
AC14 on windows 7
Michael Wilson
ArchiCAD 9 - 22 (6021 AUS Full)
Win7 | 64 bit | 8Gb RAM | Intel i7 3.40 Ghz