• Announcements

    • Rahul Ponginan

      Please click here for a short but important announcement   03/26/17

      Dear Users Our Commercial and Academic users around the world can use these same forums here as before i.e. the Altair Support Forum , Commercial users from India with solver queries can go to the Solver Forum for India Commercial Users , Academic Users from India and AOC India Participants are requested to go to the Forum for India Academic Users and AOC India Participants , We will be tending to all queries in all the forums promptly as before, thank you for your understanding. 
  • 0
Aditya Palsule

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?

Share this post

Link to post
Share on other sites

1 answer to this question

  • 0


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 C:/sample.tpl}
hw::ExecuteMenuItem 188
.guiMainWindow.statusbar.bbox.bapply invoke
.guiMainWindow.statusbar.bbox.bcancel invoke
rename tk_getOpenFile ""
rename tk_getOpenFile_Old tk_getOpenFile


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now