Is there any tcl command to create mark by color in Hypermesh ?

Sanit Bhatkar_21192
Sanit Bhatkar_21192 Altair Community Member
edited October 2021 in Community Q&A

I wanted to isolate red colored components and recolor them. Is there any tcl command for this.

Best Answer

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited October 2021 Answer ✓

    Assuming that you know the color CODE you can use "equal to value"

    My comp is a blue component, color code 5. (i've changed the color to 5 first)

     

    (Documents) 24 % *setvalue comps name=rbe color=5
    1
    (Documents) 25 % *createmark comps 1 "equal to value" color 5
    1
    (Documents) 26 % hm_getmark comps 1
    1002

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited October 2021 Answer ✓

    Assuming that you know the color CODE you can use "equal to value"

    My comp is a blue component, color code 5. (i've changed the color to 5 first)

     

    (Documents) 24 % *setvalue comps name=rbe color=5
    1
    (Documents) 25 % *createmark comps 1 "equal to value" color 5
    1
    (Documents) 26 % hm_getmark comps 1
    1002