calling tpl file in tcl script for using in hyperview
I need to open a saved template say a.tpl as soon as i run a tcl file say x.tcl
basically i need to call tpl file in tcl file. How cn that be done?
Answers
-
Hi,
it is my lazy way to look for wrapping gui commands
open a C:/sample.tpl file in hyperview:
rename tk_getOpenFile tk_getOpenFile_Old proc tk_getOpenFile args {return Csample.tpl} hw::ExecuteMenuItem 188 .guiMainWindow.statusbar.bbox.bapply invoke .guiMainWindow.statusbar.bbox.bcancel invoke rename tk_getOpenFile '' rename tk_getOpenFile_Old tk_getOpenFile
0 -
Altair Forum User said:
Hi,
it is my lazy way to look for wrapping gui commands
open a C:/sample.tpl file in hyperview:
rename tk_getOpenFile tk_getOpenFile_Old proc tk_getOpenFile args {return Csample.tpl} hw::ExecuteMenuItem 188 .guiMainWindow.statusbar.bbox.bapply invoke .guiMainWindow.statusbar.bbox.bcancel invoke rename tk_getOpenFile '' rename tk_getOpenFile_Old tk_getOpenFile
Hello tinh,
Please can you help to get this tcl script to work on HW13.0
Currently unable to run this on HW13.0.
Currently using in .cmd file
pushd C:\Program Files\Altair\13.0.110\hw\bin\win64
start hw.exe -clientconfig hwplot.dat -tcl Z:\sample.tcland in sample.tcl this data:
rename tk_getOpenFile tk_getOpenFile_Old
proc tk_getOpenFile args {return Z:/TowingTpl.tpl}
hw::ExecuteMenuItem 188
.guiMainWindow.statusbar.bbox.bapply invoke
.guiMainWindow.statusbar.bbox.bcancel invoke
rename tk_getOpenFile ''
rename tk_getOpenFile_Old tk_getOpenFilePlease can you able to make this work.
Thanks
0 -
Hi,
I am sorry that it did not work. I will check it and inform you.
It may take a bit long time because I don't use hyperview much /emoticons/default_ph34r.png' srcset='/emoticons/ph34r@2x.png 2x' title=':ph34r:' width='20' />
0 -
Altair Forum User said:
Hi,
I am sorry that it did not work. I will check it and inform you.
It may take a bit long time because I don't use hyperview much /emoticons/default_ph34r.png' srcset='/emoticons/ph34r@2x.png 2x' title=':ph34r:' width='20' />
Thank you tinh for your reply.
No problem Tinh.
0