Code: Select all
CONDITION: xxx
CONDTYPE: over layers
CONDMESHTYPE: 'over nodes'
QUESTION: PNAX
VALUE: 0.0
QUESTION: PNAY
VALUE: 0.0
END CONDITION
the normal way to loop this information is like this
Code: Select all
*set cond xxx *layers
*loop layers onlyincond
*layernum *layername *cond(PNAX) *cond(PNAY)
*end layers
but do you want instead that each printed row do the opposite loop: a single row by question and as much columns as entities (in this case I assume that is expected a small amount of bodies)
Code: Select all
*set cond xxx *layers
Num bodies: *CondNumEntities
bodies: (to know the body represented by each column)
*loop layers onlyincond
*layername *\
*end layers
PNAX
*loop layers onlyincond
*cond(PNAX) *\
*end layers
PNAY
*loop layers onlyincond
*cond(PNAY) *\
*end layers
(the .bas is very limited and is not possible to do a loop over questions, to do it must swap to use Tcl scripting).