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
Answers
-
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.
0 -
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.tclDo you have an idea with the .mac?
Thanks, Dirk
0 -
Hi,
... I checked it in HM10, there I can read a macro under
--> File --> Load --> Macroin HM11 I'm missing this way , where can I read macros?
Dirk
0 -
guys,
Check preferences > menu config to load a custom hm.mac
also see HM-8010: Add a Button to the User Page on the Utility Menu,
Thanks and regards
Rahul Ponginan
0