Topic: How to run a Macro (*.mac) in HM11 ?

User: "Rahul_P1"
Altair Employee
Updated by Rahul_P1

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

icon_biggrin.gif 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.

icon_sad.gif I don't know, how to read/ activate the *.mac in HM11 icon_sad.gif

 

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "Rahul_P1"
    Altair Employee
    OP
    Updated by Rahul_P1

    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.

    User: "Rahul_P1"
    Altair Employee
    OP
    Updated by Rahul_P1

    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

    User: "Rahul_P1"
    Altair Employee
    OP
    Updated by Rahul_P1

    Hi,
    ... I checked it in HM10, there I can read a macro under
    --> File --> Load --> Macro

    in HM11 I'm missing this way , where can I read macros?

    Dirk

    User: "Rahul_P1"
    Altair Employee
    OP
    Updated by Rahul_P1

    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