rename components to lowercase
AlvaroBueno
Altair Community Member
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!
0
Answers
-
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 ' } } }
0 -
Thanks a lot
This is exactly that I was looking for.0 -
Thanks for your help also
0