Script to Create a Set populated with Bar/Beam elements

Andy@LamteqSolutions
Andy@LamteqSolutions Altair Community Member
edited October 2020 in Community Q&A

Hi all,

 

Am trying to create a script which instantly creates a set with all the beam and bar elements in my model... this is how far I have gotten.

 


*createmark elems 1 'by config' bar2
*createentity sets cardimage=SET_ELEM name=set1
*setvalue sets id=2 ids= elems 1  {this is where I am getting it wrong}
*setvalue sets id=2 name='test'

 

I can create the set easily but it is getting the beam and bar elements into that set which is proving troublesome.

Also, is there a list of all Hypermesh TCL script commands?

 

Cheers

Andy

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited April 2018

    change to 'ids=[hm_getmark elems 1]'

    (have quotes)

     

    commands are listed in help>altair help home>reference help of hypermesh

  • Andy@LamteqSolutions
    Andy@LamteqSolutions Altair Community Member
    edited April 2018

    Many thanks Tinh.