Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Add startup argument for abaqus.cae (backport #5575) #5583

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/abqpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def cae(
database: str | None = None,
replay: str | None = None,
recover: str | None = None,
startup: str | None = None,
gui: bool = False,
envstartup: bool = True,
savedOptions: bool = True,
Expand All @@ -80,6 +81,8 @@ def cae(
The name of the replay file to open, by default None
recover : str, optional
The name of the journal file to open, by default None
startup : str, optional
The name of the startup file to open, by default None
gui : bool, optional
Run Abaqus/CAE command with the graphical user interface (GUI mode), by default False.
envstartup : bool, optional
Expand All @@ -100,9 +103,10 @@ def cae(
"""
# Parse options
options = self._parse_options(script=script if gui else None, noGUI=script if not gui else None,
database=database, replay=replay, recover=recover, noenvstartup=not envstartup,
noSavedOptions=not savedOptions, noSavedGuiPrefs=not savedGuiPrefs,
noStartupDialog=not startupDialog, custom=custom, guiTester=guiTester,
database=database, replay=replay, recover=recover, startup=startup,
noenvstartup=not envstartup, noSavedOptions=not savedOptions,
noSavedGuiPrefs=not savedGuiPrefs, noStartupDialog=not startupDialog,
custom=custom, guiTester=guiTester,
guiRecord=True if guiRecord is True else None,
guiNoRecord=True if guiRecord is False else None) # fmt: skip
args = ("--", *args) if args else ()
Expand Down