rename components to lowercase

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

Hello, 
 

someone knows how to write a tcl to rename all the components to lowercase
If not.. is it possible to export a summary file in lowercase?


Thanks!

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2019

    Hi, 

     

    You can do that using the below code:

     foreach str_compName [hm_entitylist comps name] {     set str_newCompName [string tolower $str_compName];     if {$str_compName != $str_newCompName} {         if {[catch {*renamecollector components '$str_compName' '$str_newCompName'}]} {             puts 'Multiple components with name $str_compName exists '         }     } }

     

  • AlvaroBueno
    AlvaroBueno Altair Community Member
    edited March 2019

    Thanks a lot
    This is exactly that I was looking for.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2019

    Thanks for your help also