Assigning literals to a variable

Am I correct that there is no way to assign literals to a variable?
I am trying to create a reusable script to make a concrete girder bridge with different amount of girders, however looping over the alfabet and assigning letters to the axisses doesn’t seem to work:
Is there another way to do it?

sto#SPAN 26 $[m] span
sto#beams 5 $ number of beams
sto#inter 1.5 $[m] distance between beams

GAX ‘MAIN’ TYPC AXIS TITL “MAIN”
GAXA S 0.0 X 0.0 0.0 SX 1.00000 0.0
GAXA L #SPAN R 0.0

STO#list ‘A’,‘B’,‘C’,‘D’,‘E’,‘F’,‘G’,‘H’,‘I’,‘J’,‘K’,‘L’,‘M’,‘N’,‘O’,‘P’,‘Q’,‘R’,‘S’,‘T’
loop#i #beams
let#AxisID #list(#i)
GAXS ‘MAIN’ IDS #AxisID Y (((#beams-1)#inter)/2)-(#i#inter) $create secondary axisses
endloop

Hi,

I searched through my old models and found working script like this:

let#ids1 '0','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','R','Q','S','T','U','W','X','Y'

loop#i ids1
 loop#j #n_points
  gaxp 'A1' ids '#ids1(#i)' S #x(#j) IDP 'P#j' ncs 1
 endloop
endloop     
1 Like