*Createarray

Altair Forum User
Altair Employee

Hello,all
Now I have question about *createarray usage. I have owned a list, and I want *createarray command quotes my list, but now I don't know how to do.
Example:
set n 5
set mlist {1 2 3}
*createarray $n 1 2 3 (how to input 1 2 3 by using mlist varible?)
*attributeupdateentityidarray groups $pair_id 2025 2 2 0 groups 1 $n
Thanks and regard
0
Answers
-
Hi
Use eval
eval *createarray $n $mlist
Or
*createarray $n {*}$mlist
0