*if(strcmp(GenData(For_Import_Use),"AtenaConsole2024")==0)

@echo off
IF %atenaconsole2024%.==. GOTO error64

*If(strcmp(GenData(Calculation_Analysis),"Transport")==0)
%AtenaConsole2024% /M CCStructuresTransport /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Creep")==0)
%AtenaConsole2024% /M CCStructuresCreep /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Dynamic")==0)
%AtenaConsole2024% /M CCStructuresDynamic /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Static")==0)
%AtenaConsole2024% /M CCStructures /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*EndIf


exit
goto :end
:error64
echo Error: AtenaStudio 2024 not found. Go to problem Data and change it to version 5. >>../%1.err
exit
:end

*Else

*If(strcmp(GenData(Calculation_Analysis),"Transport")==0)
%AtenaConsole64% /M CCStructuresTransport /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Creep")==0)
%AtenaConsole64% /M CCStructuresCreep /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Dynamic")==0)
%AtenaConsole64% /M CCStructuresDynamic /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*ElseIf(strcmp(GenData(Calculation_Analysis),"Static")==0)
%AtenaConsole64% /M CCStructures /O AtenaResults.inp AtenaResults.out AtenaResults.msg AtenaResults.err
*EndIf

*EndIf
