Overwrite in batchmesh

2»

Answers

  • tinh
    tinh Altair Community Member
    edited April 2018

    Hi Samraj,

    how did you run it successfully last time?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2018

    Hello Tinh,

     

    I tried the following code and it seems to work fine. Just one more doubt. I had wanted the script to print 'normal termination' at the end of the file. You had suggested to include it in the 'exportdynamesh.tcl' fine which worked. But i would like to include that in the .bat file which i tried now is working. Could you please suggest a method?

     

    The following code is the latest one i tried from the command line to ivoke the batchmesher


     

     set SW_DIR=C:\FK-Programme\Altair\hm\batchmesh set MODEL_DIR=E:\Datei\Results\Optimization\Schweller_Optimization  %SW_DIR%/hw_batchmesh.bat -nogui -cad_translator step -cad_model_file E:\Datei\Results\Optimization\Schweller_Optimization\Schweller.stp -criteria_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.criteria -param_file C:\FK-Programme\Altair\hm\batchmesh\crash_5mm.param -user_procedure POST_BATCHMESH C:\FK-Programme\Altair\hm\batchmesh\exportdynamesh.tcl exportmesh 'dyna'  -work_dir E:\Datei\Results\Optimization\Schweller_Optimization

    Thank you

  • tinh
    tinh Altair Community Member
    edited April 2018

    Hi Samraj

    I don't think bat file can return a string

    instead it can return an integer indicating error code

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2018

    Hello Tinh,

     

    THank you very much. I will look into that now.