Hypermesh Scripting General Questions for Beginner

William Kuo_21386
William Kuo_21386 New Altair Community Member
edited June 2023 in Community Q&A

Hello forums,

I have a set of questions for Hypermesh scripting. I am new to scripting. I wrote a basic code but I keep having these pop ups that force me to click through them. Is there any way to bypass these always in the script by always saying yes?

image

image

My second question is whenever I try to overwrite the files and save a version, I get an error. How do I bypass this error?

image

image

image

Tagged:

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2023

    Adding

    hm_answernext yes

    before the commands that give the popups will do the trick.

    https://help.altair.com/hwdesktop/hwd/topics/reference/hm/hm_answernext.htm

    The error is a little more tricky and might need further investigation. If you write the files from the GUI it works? If you write the files in the tcl console does it work? If not, are there any different messages? They files aren't open somewhere else or in a folder that needs admin priviledges?