Originally posted by Todd Lundstedt
Frustrated with the Cloverleaf IDE not keeping threads in the same place in sub views when I re-arranged them in the all_threads view, I wrote this little ditty. In the process, I learned something new about TCL lists (nesting). You should have seen the code before I stumbled on that little tidbit! :shock: :idea:
While, I am sure Charlie could write this in a 10-character regexp command,

and Russ will be critical of my not putting a comment on every line (hey, Russ! Hows it going?! :P ), I learned something, and even got it to work on Windows... go figure.
Tested on Cloverleaf 5.5, AIX 5.3. Put the file in your path; I put it in $HCIROOTusercmds
arrangeView.tcl path/dflt.mvw path/newdflt.mvwTested on Cloverleaf 5.7, W2K3, from a command line
setroot
hcitcl patharrangeView.tcl pathdflt.mvw pathnewdflt.mvwSo, set your all_threads view the way you want, run this script, and the other views will follow all_threads' lead.
Enjoy!