*createlist

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

Hello there, I am at the Moment working in scripts for hypermesh and stumbled over an error while using the *createlist command. If i want to fill a list with a TCL variable, which i got from a Mark of e.g. nodes by hm_getmark, i won't be able to create a list of nodes by e.g. *createlist nodes 1 $selected_nodes. It will take only the First entry of my variable but it contains a whole bunch of node ids. Is this a Bug? Or did I get something wrong. Is there a workaround? I think there are very few commands for list creating in the modify commands. I need it for the *linearsurfacebetweennodes command. to avoid confusion: the list i am talking about is Not a TCL-list, i want to create a node list out of a TCL-list of their ids... I would be very thankfull for some help

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited October 2013

    hi,

    the command is correct. But you need to 'eval' it, so

    eval *createlist nodes 1 $nodelist

    will take all nodes in list

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2013

    Thank you, that works!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.