RENAMING COMP COLLECTORS IN HYPERMESH using TCL scripts
Hi All,
Anyone can tell me the How to Rename the comp collectors in HyperMesh using TCL scripts.
For suppose Comp name : ABC12345_2.00T and PID : 1 OUTPUT : ABC12345_1
i want to keep that first eight digits, and i want to delete that thickness information and i want to rename with its PID
please tell me If anyone know
Regards,
Sudhakar
Find more posts tagged with
Sort by:
1 - 12 of
121
hi Sudhakar,
What changes you made to the script provided by Tinh?
If possible can you paste the complete TCL script you used
Hi,
you can use this function
proc make_new_name {name} {set i 0set name_ [string range $name 0 [string last '_' $name]]while {[hm_entityinfo exist comps '${name_}[incr i]' -byname]} {}return ${name_}$i}
Here is my not-yet-tested code: