🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

*createlist lines Tcl Modify Command is not working properly

User: "Hypermesh User"
Altair Community Member
Updated by Hypermesh User

While assigning the list of lines(id) to *createlist lines it takes only the first index element of the list.

For example;

Set lineid {101 102 103}

*createlist lines 1 $lineid;

The above Created lines list id 1 should contain three elements 101, 102 & 103

But it always takes only 101 only.

 

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "llyle_22464"
    New Altair Community Member
    Accepted Answer
    Updated by llyle_22464

    Hi Manoj

     

    Use eval to expand the list

     

    eval *createlist lines 1 $lineid

    User: "Viraj_Kulkarni"
    Altair Employee
    Updated by Viraj_Kulkarni

    Hi Manoj,

    As llyle mentioned please use the eval, here I have added a screenshot of commands and the result.

    The 3 line ids are printed.

    image

    User: "Hypermesh User"
    Altair Community Member
    OP
    Updated by Hypermesh User

    Hi Manoj

     

    Use eval to expand the list

     

    eval *createlist lines 1 $lineid

    Thanks llyle , Now its working fine,Thanks for your support.

    User: "Hypermesh User"
    Altair Community Member
    OP
    Updated by Hypermesh User

    Hi Manoj,

    As llyle mentioned please use the eval, here I have added a screenshot of commands and the result.

    The 3 line ids are printed.

    image

    Yes Viraj, I also used eval its working fine.Thanks for checking by spending your valuable time.

    User: "Saurabh pandey"
    Altair Community Member
    Updated by Saurabh pandey

    always use eval command id you are calling any $list items..like eval *createmark line 1 $list