List of strings

I’ve been trying to create a list of strings to name load cases in a loop.

However, it would seem that it’s not possible to interact with a list of strings after it’s created, is that really true?

Please see the example code piece below:

+prog template
    head List of strings

    let#list1 1,2,3
    prt#list1

    let#list2 'A','B','C'
    prt#list2

    let#list3 #list1(:)
    prt#list3

    let#list4 #list2(:)
    prt#list3
end

Hello,

If you want to increase the title of an load case set, try to use the following code snippet. The first short code creates a load case with the title “2C”.

LET#list1 'A','B','C'
LET#list2 '1','2','3'
LC 1 DLZ 1.0 TITL #list2(1)#list1(2)

Or you work with an increasing variable name:

LET#lf 2
LET#s1 "loadcase #(lf,3)"
PRT#s1

Best regards
Frederik Höller
Your SOFiSTiK Support Team

thank you for your reply. Even though you have now edited your reply, I hope you will still let the responsible developer know about this issue.

Meanwhile, I’ll do the workaround.