Topic: How to run a Macro (*.mac) in HM11 ?
Hi ,
from a friend I got a .hm model with results .res and .tcl scripts.
The scripts will be activated with a macro .mac , written for HM5
( it's a funny jumping kangaroo)T
he Macro starts:
HyperMesh 5.0 Sample macro configuration file
*setbuttongroupactivecolor(GREY)
*createbuttongroup(0,0,'Rudi bewegt sich', 4,0,10,CYAN,'Tasten die Rudi zum Bewegen bringen', 'macroSetActivePage',5)
*createbuttongroup(0,0,'Rudis Zuhause', 3,0,10,MAGENTA,'Tasten die ein Zuhause fuer Rudi bauen', 'macroSetActivePage',6)
*setactivegroup(0, 0, 1)
*beginmacro(macroSetActivePage)
*setactivepage($1)
*endmacro()
*createtext(5, 'Was macht Rudi?', 38, 0)
*createtext(5, '=================', 37, 0)
*createtext(6, 'Wo wohnt Rudi?', 38, 0)
*createtext(6, '=================', 37, 0)
...
and a lot of other lines.
I don't know, how to read/ activate the *.mac in HM11
Hi Brandon_Mitchell,
thanks for helping!
... if I load the hm model and the results, I can run the attached tcl scripts w/o error, the kangaroo is 'jumping', etc.
But I don't know, how to run/ activate the main Macro (.mac) what should
organize the use of the tcl scripts(buttons,...)
The data structure, I got, looks like:
model.hm
results.res
macro.mac
subdir/scripts.tcl
Do you have an idea with the .mac?
Thanks, Dirk
cae,
Have you attempted to run your .tcl file first in 11.0 and see if the script runs? With the macro being written for HM5, there is a possiblity it won't run.