component special rename

AlvaroBueno
AlvaroBueno Altair Community Member
edited October 2020 in Community Q&A

hello, I´m looking for a script to rename just a part in the middle of a component name '-x-' to a number added by a popup window '-1-' for example.

I really don´t know if is really possible.

Anybody can help me?

Thanks!

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited March 2020

    If you wan to learn TCL programming:

    • Select components with *createmark
    • Get component name with hm_getvalue
    • Change component name whatever you want
    • Update component name

    That's all :D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />