🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Tutorial "Utility Menu Macro from a Tcl Script" not working

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi all,

I am new to Hypermesh and I have to focus on scripting/macros/user menus.

So I started with the tutorials about HyperMesh customization.

There is a tutorial available in HyperWorks Help: 'HM-8040: Create a Utility Menu Macro from a Tcl Script'

The link for tutorial (in standard installation of HyperMesh) is:

file:///C:/Program%20Files/Altair/11.0/help/hwtut/hwtut.htm?8040.htm

I followed the procedure exactly, and very carefully, however at the end, I found that there was no new button created for my macro which runs the file saving tcl script image/emoticons/default_sad.png' alt=':(' srcset='/emoticons/sad@2x.png 2x' width='20' height='20'>

The Utility menu's userpage was totally blank.

 

Is there any reason known to create this problem?

This is a very basic level tutorial and it is not working with the perfectly fine installtion of HyperMesh that runs flawlessly with interactive operations.

Any sort of help is welcomed.

 

Best regards,

Mubeen.

Find more posts tagged with

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

    Hello,

     

    First step:

    You have to modify the userpage.mac in c:\Program Files\Altair\11.0\hm\bin\win64\userpage.mac

    (be sure that you save the line

    *createbutton(5,'SaveFile TCL',15,0,10,GREEN,'Save file using TCL macro', 'EvalTcl','savefile.tcl')

    into this file)

     

     

    Second step:

    Copy savefile.tcl into c:\Program Files\Altair\11.0\hm\scripts\

     

    Look at Utility->User for the Button...

     

    Thats all

    Regards,

    Mario

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi Mario,

    Thank you for the advice.

     

    I was unable to see my macro created button as well as all of these default buttons in Utility Menu:
    Geom/Mesh   User
    Disp               QA/Model


     

    I was following the procedure mentioned in your comment, but the buttons weren't visible so I thought it might be due to HyperMesh settings.

     

    Fortunately I was able to figure out the cause of this problem, the macro menu in Utility tab was disabled by default in HyperMesh, I replaced 0 by 1 in the macro 'macroMacroMenuStatus' in the end of globalpage.mac file. So the buttons became visible.

     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    hello hai

         please explain in the screen shot i have confused please reply me quickly

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hello
    Can you help me to create RSPLINE?
    Where can I import RSPLINE_elem.tcl

    Regards