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 argument1 if “try.py” is defined as 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 Part-1 is valid if “checkPartValidity.py” is defined as 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) |