ProductsAbaqus/CAE Command Summaryabaqus
cae
databasedatabase-file
replayreplay-file
recoverjournal-file
startupstartup-file
scriptscript-file
noGUInoGUI-file
noenvstartup
noSavedOptions
noSavedGuiPrefs
noStartupDialog
customscript-file
guiTesterGUI-script
guiRecord
guiNoRecord
Command Line Options
ExamplesThe following examples illustrate the command line options of the cae execution procedure and how arguments are passed to Abaqus/CAE. Opening a Model DatabaseThe following command will execute Abaqus/CAE and load the model database file called “beam”: abaqus cae database=beam Passing Arguments to a ScriptThe following command will run the Python script in a file named “try.py” at application startup and pass “argument1” to the script: abaqus cae script=try.py -- argument1 The above command will print import sys print sys.argv[-1] Running Abaqus/CAE without the Graphical User InterfaceThe following command will run the Python script in a file named “checkPartValidity.py” and pass arguments to the script specifying the model database, the model, and the part. The script is executed by Abaqus/CAE; however, the graphical user interface is never displayed. abaqus cae noGui=checkPartValidity.py -- test.cae Model-1 Part-1 The above command will print import sys import os myMdb= sys.argv[-3] myModel = sys.argv[-2] myPart = sys.argv[-1] mdb = openMdb(myMdb) model = mdb.models[myModel] part = model.parts[myPart] if part.geometryValidity: sys.__stderr__.write('%s is valid\n' % myPart) else: sys.__stderr__.write('%s is invalid\n' % myPart) |