How can I createmark on a group of components, each having the same prefix (for ex. : floor_1, floor_2 and similarly)?

Rushabh Parikh
Rushabh Parikh Altair Community Member
edited January 2023 in Community Q&A

How can I createmark on a group of components, each having the same prefix (for ex. : floor_1, floor_2 and similarly)?  Currently I am able to create a list having the components with prefix floor. but when I am trying to create a mark using that list, HM is not marking any component.

set complst [hm_entitylist comps name]

set lst [lsearch -all -inline -glob $complst *Floor*]

*createmark comps 1 $lst

*assemblymodify somename 1 3

 

The ultimate objective is to have all the comps with same prefix into one assembly but when i debug I found the issue in "createmark" command. 

 

Regards,

Rushabh 

 

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited January 2023

    Try this option under *createmark to select by prefix.

    image

     

    But concerning your code specifically, you should run this using hm_createmark to work with a list, or puts your *createmark line between eval "*create......."

     

    Instead of:

    *createmark comps 1 $lst

     

    Use:

    eval "*createmark comps 1 $lst"

    or

    hm_createmark comps 1 $lst