HyperMesh 14.0 Auto Save Script
Answers
-
Hi Richard,
There is no option for now to autosave HM files at regular interval, Maybe you can write a code to run a tcl script which autosaves session/hm file at regular intervals
There is a a command called *setautosaveinterval(#) but this won't work for HyperMesh application.
0 -
Hi, I see an available script. To use it, type command
source [file join [hm_info -appinfo SPECIFIEDPATH hm_scripts_dir] autosave.tcl]
autosave::CreateDialog
or you can make a simple script:
proc ::myautosave minutes { catch { file rename [hm_info currentfile] [hm_info currentfile].[clock seconds] ::HM_Framework::p_SaveFile } uplevel #0 [list after [expr $minutes*60000] [list ::myautosave $minutes]] }
0 -
-
Altair Forum User said:
Hi, I see an available script. To use it, type command
source [file join [hm_info -appinfo SPECIFIEDPATH hm_scripts_dir] autosave.tcl]
autosave::CreateDialog
or you can make a simple script:
proc ::myautosave minutes { catch { file rename [hm_info currentfile] [hm_info currentfile].[clock seconds] ::HM_Framework::p_SaveFile } uplevel #0 [list after [expr $minutes*60000] [list ::myautosave $minutes]] }
Mr. Tinh,
How you had learned the TCL/TK? Whether you had learned on your own by watching the tutorials?
Sorry for disturbing you with this type of questions. Why am asking this question to you is , I want to know how experts were learned this language.
Awaiting for your reply Mr. Tinh.
Regards,
Saravanan R
0 -
Actually i am not a tcl expert - it is used widely. I learned hypermesh before tcl. Once you're familiar with most hypermesh features, scripting is not a problem because hypermesh outputs every action of you, pick each command from command.cmf file, look it up in hm reference guide, do examples given by altair.
Tcl features are listed in manual (activestate.com) similar to other languages. This is the most simple syntax language I ever know and much easier than pascal.
0 -
Altair Forum User said:
Actually i am not a tcl expert - it is used widely. I learned hypermesh before tcl. Once you're familiar with most hypermesh features, scripting is not a problem because hypermesh outputs every action of you, pick each command from command.cmf file, look it up in hm reference guide, do examples given by altair.
Tcl features are listed in manual (activestate.com) similar to other languages. This is the most simple syntax language I ever know and much easier than pascal.
Thanks Mr. tinh, this one really helps me.
0 -
Altair Forum User said:
Thank you so much. very helpful this screenshot.
0 -
Altair Forum User said:
Hi, hypermesh does not support tbc. I need TCL, can you share it with me?
0