*Createarray

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited December 2017

    Hi

    Use eval

    eval *createarray $n $mlist

    Or

    *createarray $n {*}$mlist