.tcl Command to accept overwriting an existing file

Manjunath0711
Manjunath0711 Altair Community Member
edited October 2020 in Community Q&A

Hi,

 

I would like to know if there are any tcl commands that I can use to select yes for overwriting a file instead of manually selecting it or is there any way I can switch off the overwrite warning option in Hyperworks.

 

TIA

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited September 2020

    I use :

     hm_answernext 'yes';

    within my Tcl scripts.

  • Manjunath0711
    Manjunath0711 Altair Community Member
    edited September 2020

    Thank you for the quick response, the command is working except for overwriting an .oss file. After the execution of the highlighted line in the screenshot( attached below) the overwriting window pops up. Can you help me with this?

     

    TIA

    <?xml version="1.0" encoding="UTF-8"?>sc.png

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited September 2020

    as a workaround you could check for existance of this .oss file and if exists, delete or change your name...i don't know.

    This was covered in another topic in the forum..

     

    'file exist something'...