set i 0
set j 0
set win .window
catch {destroy $win}
toplevel $win -class TopClass
wm title $win "Master GUI"
wm geometry $win 400x200+900+650
wm resizable $win 0 0
wm deiconify $win
button $win.01 -text "Next" -font {times 15 bold} -command {Script [expr $i + 1]}
place $win.01 -x 230 -y 130 -width 140 -height 36
proc Script {j} {
set i $j
*createmark comp 1 "by assem name" Piston_2D
set Complist [hm_getmark comp 1]
set Complist [lrange $Complist 0 end]
set tot [llength $Complist]
set Isocomp [lindex $Complist $j]
*createmark comp 1 $Isocomp
*isolateonlyentitybymark 1 1 2
hm_viewfit
}